Skip to content

Commit

Permalink
[fix] get real dirname
Browse files Browse the repository at this point in the history
  • Loading branch information
Psycojoker committed Oct 6, 2011
1 parent 9e07ceb commit 9daff00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mtpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def init():
sys.exit(1)
if not os.path.exists(DIR):
if not os.path.exists(os.path.dirname(DIR)):
os.mkdir(os.path.dirname(DIR))
os.mkdir(os.path.dirname(os.path.dirname(DIR)))
print "Creating templates dir in %s" % DIR
os.mkdir(DIR)
if os.system("cd %s && git status > /dev/null 2>&1" % DIR) != 0:
Expand Down

0 comments on commit 9daff00

Please sign in to comment.