The os.path.isfile("config.py") check is too strict: it makes blitiri
usable from the command line only if it's ran in the directory where it
lives.
There's no point in doing that, let's just relax the import.
The chances of a config module collision are too low to be worth the
usability problem.
Signed-off-by: Alberto Bertogli <albertito@gmail.com>
from docutils.core import publish_parts
# Load the config file, if there is one
-if os.path.isfile("config.py"):
- try:
- from config import *
- except:
- pass
+try:
+ from config import *
+except:
+ pass
# Default template