Mercurial > piecrust2
comparison 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 |
comparison
equal
deleted
inserted
replaced
114:371a6c879ab9 | 115:9c074aec60a6 |
---|---|
2 import os | 2 import os |
3 import os.path | 3 import os.path |
4 import fnmatch | 4 import fnmatch |
5 | 5 |
6 | 6 |
7 re_terminal_path = re.compile(r'[/\\]|(\w\:)') | 7 re_terminal_path = re.compile(r'^(\w\:)?[/\\]$') |
8 | 8 |
9 | 9 |
10 class SiteNotFoundError(Exception): | 10 class SiteNotFoundError(Exception): |
11 def __init__(self, root=None, msg=None): | 11 def __init__(self, root=None, msg=None): |
12 if not root: | 12 if not root: |