Source

psd-tools / tests / utils.py

Diff from to

File tests/utils.py

 
 DATA_PATH = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'psd_files')
 
+def full_name(filename):
+    return os.path.join(DATA_PATH, filename)
+
 def load_psd(filename):
-    full_filename = os.path.join(DATA_PATH, filename)
-    with open(full_filename, 'rb') as f:
+    with open(full_name(filename), 'rb') as f:
         return psd_tools.reader.parse(f)
 
 def decode_psd(filename):