diff piecrust/pathutil.py @ 1:aaa8fb7c8918

Re-arranged modules to reduce dependencies to builtin stuff. Added `init` command.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 22 Dec 2013 08:00:24 -0800
parents a212a3f2e3ee
children 485682a6de50
line wrap: on
line diff
--- a/piecrust/pathutil.py	Sat Dec 21 14:44:02 2013 -0800
+++ b/piecrust/pathutil.py	Sun Dec 22 08:00:24 2013 -0800
@@ -17,7 +17,7 @@
 
     while not os.path.isfile(os.path.join(cwd, '_content', 'config.yml')):
         cwd = os.path.dirname(cwd)
-        if not cwd:
+        if not cwd or cwd == '/':
             return None
     return cwd