mirror of
https://github.com/SL-RU/ranger_udisk_menu.git
synced 2024-11-10 12:34:07 +01:00
use relative path for calling menu.py
This commit is contained in:
parent
77506abb8a
commit
49c3a62066
@ -20,8 +20,7 @@ class mount(Command):
|
||||
""" Show menu to mount and unmount """
|
||||
(f, p) = tempfile.mkstemp()
|
||||
os.close(f)
|
||||
self.fm.execute_console(
|
||||
f"shell python3 ~/.config/ranger/ranger_udisk_menu/menu.py {p}")
|
||||
self.fm.execute_console(f"shell python3 {os.getcwd()}/menu.py {p}")
|
||||
with open(p, 'r') as f:
|
||||
d = f.readline()
|
||||
if os.path.exists(d):
|
||||
|
Loading…
Reference in New Issue
Block a user