Code cleanup: style

This commit is contained in:
Campbell Barton
2014-02-13 08:51:33 +11:00
parent 8547d17739
commit aea00c7a81
21 changed files with 105 additions and 80 deletions

View File

@@ -409,7 +409,9 @@ def path_reference(filepath,
if mode == 'ABSOLUTE':
return filepath_abs
elif mode == 'RELATIVE':
try: # can't always find the relative path (between drive letters on windows)
# can't always find the relative path
# (between drive letters on windows)
try:
return os.path.relpath(filepath_abs, base_dst)
except ValueError:
return filepath_abs