Commits

Ian Bicking committed 92047f5

fix silver serve --config option

Comments (0)

Files changed (1)

silverlining/commands/serve.py

     environ['SILVER_PASTE_LOCATION'] = httpserver.__file__
     environ['SILVER_SERVE_HOST'] = config.args.host
     environ['SILVER_SERVE_PORT'] = config.args.port
-    if config.config:
-        environ['SILVER_APP_CONFIG'] = os.path.abspath(config.config)
+    if config.args.config:
+        environ['SILVER_APP_CONFIG'] = os.path.abspath(config.args.config)
     proc = None
     try:
         try: