diff piecrust/pathutil.py @ 115:9c074aec60a6

Fix search for root folder. Must have been drunk when I wrote this originally. I hope I'm not drunk right now.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 27 Oct 2014 08:17:51 -0700
parents 52e4d9a1f917
children 3ceeca7bb71c
line wrap: on
line diff
--- a/piecrust/pathutil.py	Sun Oct 19 00:33:28 2014 -0700
+++ b/piecrust/pathutil.py	Mon Oct 27 08:17:51 2014 -0700
@@ -4,7 +4,7 @@
 import fnmatch
 
 
-re_terminal_path = re.compile(r'[/\\]|(\w\:)')
+re_terminal_path = re.compile(r'^(\w\:)?[/\\]$')
 
 
 class SiteNotFoundError(Exception):