aboutsummaryrefslogtreecommitdiffstats
path: root/lvc/widgets/gtk/__init__.py
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2020-06-01 23:09:18 -0500
committerJesús <heckyel@hyperbola.info>2020-06-01 23:09:18 -0500
commitae25552ed9ffec782750b8bc08151bdb04650d5b (patch)
treecbb93ad53ccfd96dc64282ee9fadf951e7c66dd9 /lvc/widgets/gtk/__init__.py
parent13e49c206dcddf02abaad7eca90dfc824052d573 (diff)
downloadlibrevideoconverter-ae25552ed9ffec782750b8bc08151bdb04650d5b.tar.lz
librevideoconverter-ae25552ed9ffec782750b8bc08151bdb04650d5b.tar.xz
librevideoconverter-ae25552ed9ffec782750b8bc08151bdb04650d5b.zip
pep8
Diffstat (limited to 'lvc/widgets/gtk/__init__.py')
-rw-r--r--lvc/widgets/gtk/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lvc/widgets/gtk/__init__.py b/lvc/widgets/gtk/__init__.py
index 9fd9007..6ce69d8 100644
--- a/lvc/widgets/gtk/__init__.py
+++ b/lvc/widgets/gtk/__init__.py
@@ -63,8 +63,10 @@ def open_file_linux(filename):
""" kfmclient is part of konqueror """
+
def reveal_file(filename):
- if hasattr(os, 'startfile'): # Windows
+ # Windows
+ if hasattr(os, 'startfile'):
os.startfile(os.path.dirname(filename))
else:
open_file_linux(filename)
@@ -78,6 +80,7 @@ def get_conversion_directory_windows():
def get_conversion_directory_linux():
return os.path.expanduser('~')
+
if sys.platform == 'win32':
get_conversion_directory = get_conversion_directory_windows
else: