mirror of
https://github.com/SL-RU/ranger_udisk_menu.git
synced 2025-01-29 14:25:06 +01:00
commit
c892d44717
1 changed files with 3 additions and 2 deletions
|
@ -15,12 +15,13 @@ class mount(Command):
|
|||
|
||||
Show menu to mount and unmount
|
||||
"""
|
||||
|
||||
def execute(self):
|
||||
""" Show menu to mount and unmount """
|
||||
(f, p) = tempfile.mkstemp()
|
||||
os.close(f)
|
||||
self.fm.execute_console(f"shell python3 {os.getcwd()}/menu.py {p}")
|
||||
self.fm.execute_console(
|
||||
f"shell python3 {os.path.dirname(os.path.realpath(__file__))}/menu.py {p}"
|
||||
)
|
||||
with open(p, 'r') as f:
|
||||
d = f.readline()
|
||||
if os.path.exists(d):
|
||||
|
|
Loading…
Reference in a new issue