Remove redundant exists check in getSrcFolder
This commit is contained in:
parent
98fd8f5cc2
commit
e4bb8eed98
@ -42,10 +42,7 @@ def getSrcFolder():
|
|||||||
(mod, sys.getfilesystemencoding()))
|
(mod, sys.getfilesystemencoding()))
|
||||||
raise
|
raise
|
||||||
|
|
||||||
# Assert the source checkout is not in a non-representable path...
|
return os.path.dirname(os.path.dirname(mod))
|
||||||
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)))
|
|
||||||
|
|
||||||
def resourcePath(filename):
|
def resourcePath(filename):
|
||||||
"""
|
"""
|
||||||
|
Reference in New Issue
Block a user