mirror of
https://github.com/SL-RU/ranger_udisk_menu.git
synced 2025-01-30 14:55:10 +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
|
Show menu to mount and unmount
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def execute(self):
|
def execute(self):
|
||||||
""" Show menu to mount and unmount """
|
""" Show menu to mount and unmount """
|
||||||
(f, p) = tempfile.mkstemp()
|
(f, p) = tempfile.mkstemp()
|
||||||
os.close(f)
|
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:
|
with open(p, 'r') as f:
|
||||||
d = f.readline()
|
d = f.readline()
|
||||||
if os.path.exists(d):
|
if os.path.exists(d):
|
||||||
|
|
Loading…
Reference in a new issue