aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorYuchen Pei <me@ypei.me>2018-04-28 23:15:54 +0200
committerYuchen Pei <me@ypei.me>2018-04-28 23:15:54 +0200
commit2822a3c7dd36d52e550f501602b135b330f6ab48 (patch)
treeb178529af519c7822d0551706139e0b306438f32 /engine
parentda51d3fbbdf2cbf9fee196682235060f31781c1c (diff)
edited engine so that the script can be run anywhere
Diffstat (limited to 'engine')
-rw-r--r--engine/engine.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/engine.py b/engine/engine.py
index 3373f7a..1ef0f8e 100644
--- a/engine/engine.py
+++ b/engine/engine.py
@@ -33,7 +33,7 @@ def combine(item, template):
def main():
- basedir = '../'
+ basedir = os.path.dirname(os.path.realpath(__file__)) + '/../'
pagesdir = basedir + 'pages/'
postsdir = basedir + 'posts/'
micropostsdir = basedir + 'microposts/'