diff options
Diffstat (limited to 'lvc/widgets/gtk/__init__.py')
-rw-r--r-- | lvc/widgets/gtk/__init__.py | 5 |
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: |