Skip to content

Commit

Permalink
Support netsim.ini tmpdir on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
initializedd committed Sep 27, 2024
1 parent bdba5c9 commit 89d3360
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bumble/transport/android_netsim.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ def get_ini_dir() -> Optional[pathlib.Path]:
elif sys.platform == 'linux':
if xdg_runtime_dir := os.environ.get('XDG_RUNTIME_DIR', None):
return pathlib.Path(xdg_runtime_dir)
if tmpdir := pathlib.Path('/tmp'):
return tmpdir
elif sys.platform == 'win32':
if local_app_data_dir := os.environ.get('LOCALAPPDATA', None):
return pathlib.Path(local_app_data_dir) / 'Temp'
Expand Down

0 comments on commit 89d3360

Please sign in to comment.