소스 검색

__file__ is now always an absolute path (3.4)

Thomas Waldmann 9 년 전
부모
커밋
7c8bfe6681
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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):