Major bug fix, be careful when editing isWindowsPath() and normalizePath() in common.py, they can break all

This commit is contained in:
Bernardo Damele
2010-02-26 12:00:47 +00:00
parent 66c9885b96
commit 8c68d25b39
2 changed files with 9 additions and 2 deletions

View File

@@ -65,7 +65,7 @@ class Miscellaneous:
else:
conf.tmpPath = "/tmp"
if re.search("^[\w]\:[\/\\\\]+", conf.tmpPath, re.I):
if re.search("\A[\w]:[\/\\\\]+", conf.tmpPath, re.I):
kb.os = "Windows"
conf.tmpPath = ntToPosixSlashes(conf.tmpPath)