From aea00c7a81de90fd3f0b976ee1a7d5040c9f18e7 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 13 Feb 2014 08:51:33 +1100 Subject: Code cleanup: style --- release/scripts/modules/bpy_extras/io_utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'release/scripts/modules/bpy_extras/io_utils.py') diff --git a/release/scripts/modules/bpy_extras/io_utils.py b/release/scripts/modules/bpy_extras/io_utils.py index 790233c40af..b1877a9d439 100644 --- a/release/scripts/modules/bpy_extras/io_utils.py +++ b/release/scripts/modules/bpy_extras/io_utils.py @@ -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 -- cgit v1.2.3