Remove redundant exists check in getSrcFolder

This commit is contained in:
David Vierra 2016-03-30 11:50:27 -10:00
parent 98fd8f5cc2
commit e4bb8eed98

View File

@ -42,10 +42,7 @@ def getSrcFolder():
(mod, sys.getfilesystemencoding()))
raise
# Assert the source checkout is not in a non-representable path...
assert os.path.exists(mod), ("Source checkout path cannot be represented as unicode. "
"Put the source checkout somewhere else.")
return os.path.dirname((os.path.dirname(mod)))
return os.path.dirname(os.path.dirname(mod))
def resourcePath(filename):
"""