Browse Source

Insert current working directory to path,

This allows a-la sphinx conf when blogit is installed
to /usr/local/bin/
oz123 10 years ago
parent
commit
45db4ae1e2
1 changed files with 3 additions and 1 deletions
  1. 3 1
      blogit.py

+ 3 - 1
blogit.py

@@ -43,7 +43,6 @@ from distutils import dir_util
 import shutil
 from StringIO import StringIO
 import codecs
-from conf import CONFIG, ARCHIVE_SIZE, GLOBAL_TEMPLATE_CONTEXT, KINDS
 import subprocess as sp
 import SimpleHTTPServer
 import BaseHTTPServer
@@ -70,9 +69,12 @@ except ImportError, e:
         print "try: sudo pip install markdown2"
         sys.exit(1)
 
+sys.path.insert(0, os.getcwdu())
+from conf import CONFIG, ARCHIVE_SIZE, GLOBAL_TEMPLATE_CONTEXT, KINDS
 jinja_env = Environment(loader=FileSystemLoader(CONFIG['templates']))
 
 
+
 class Tag(object):
     def __init__(self, name):
         super(Tag, self).__init__()