|
|
@@ -44,10 +44,10 @@ def is_subdir_of(subject, other):
|
|
|
|
|
|
def open_file(path_):
|
|
|
if sys.platform == 'darwin':
|
|
|
- subprocess.check_call(['open', str(path_)])
|
|
|
+ subprocess.check_call(['open', path_.abspath()])
|
|
|
elif sys.platform == 'linux':
|
|
|
- subprocess.check_call(['xdg-open', str(path_)])
|
|
|
+ subprocess.check_call(['xdg-open', path_.abspath()])
|
|
|
elif sys.platform == 'win32':
|
|
|
- subprocess.check_call(['explorer', str(path_)])
|
|
|
+ subprocess.check_call(['explorer', path_.abspath()])
|
|
|
else:
|
|
|
raise RuntimeError(f"Unsupported platform {sys.platform}")
|