Commits

w...@styx.org  committed 32a38b8

make app:main section optional

  • Participants
  • Parent commits 7b1452c

Comments (0)

Files changed (1)

File ordf/command.py

     cfgfile = ConfigParser({ "here": os.path.dirname(cfgpath) })
     cfgfile.read(cfgpath)
 
-    if not cfgfile.has_section("app:main"):
-        print "%s is missing section [app:main]" % (filename)
+    cfg = {}
+    if cfgfile.has_section("app:main"):
+        cfg.update(cfgfile.items("app:main"))
 
-    return dict(cfgfile.items("app:main"))
+    return cfg
 
 class Command(object):
     """