Selaa lähdekoodia

__file__ is now always an absolute path (3.4)

Thomas Waldmann 9 vuotta sitten
vanhempi
sitoutus
7c8bfe6681
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      borg/testsuite/archiver.py

+ 1 - 1
borg/testsuite/archiver.py

@@ -34,7 +34,7 @@ except ImportError:
 
 has_lchflags = hasattr(os, 'lchflags')
 
-src_dir = os.path.join(os.getcwd(), os.path.dirname(__file__), '..')
+src_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
 
 
 def exec_cmd(*args, archiver=None, fork=False, exe=None, **kw):