WIP more prints

This commit is contained in:
Bruno Oliveira 2021-11-20 11:40:46 -03:00
parent 72cd4a96d0
commit 3906e0c28c
1 changed files with 2 additions and 1 deletions

View File

@ -1150,7 +1150,8 @@ def get_cache_dir(file_path: Path) -> Path:
# path = '/home/user/proj/test_app.py' # path = '/home/user/proj/test_app.py'
# we want: # we want:
# '/tmp/pycs/home/user/proj' # '/tmp/pycs/home/user/proj'
return Path(sys.pycache_prefix) / Path(*file_path.parts[1:-1]) # HACK skip some parts to check if long paths are a problem.
return Path(sys.pycache_prefix) / Path(*file_path.parts[1:-1:2])
else: else:
# classic pycache directory # classic pycache directory
return file_path.parent / "__pycache__" return file_path.parent / "__pycache__"