Return the path to the cache directory for this user.
(prefixes_to_resolve: List[str])
| 44 | |
| 45 | |
| 46 | def get_local_dir(prefixes_to_resolve: List[str]) -> str: |
| 47 | """Return the path to the cache directory for this user.""" |
| 48 | for prefix in prefixes_to_resolve: |
| 49 | if os.path.exists(prefix): |
| 50 | return f"{prefix}/{getpass.getuser()}" |
| 51 | os.makedirs(prefix) |
| 52 | return f"{prefix}/{getpass.getuser()}" |
| 53 | |
| 54 | |
| 55 | def get_local_run_dir(exp_name: str, local_dirs: List[str]) -> str: |
no outgoing calls
no test coverage detected