Skip to content

Commit

Permalink
fix explorer not opening the right directory on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
wilhelmberg committed Jul 21, 2019
1 parent d698a25 commit 6f9f597
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CKAN-Browser/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ def open_in_manager(self, file_path):
elif sys.platform == 'linux' or sys.platform == 'linux2':
subprocess.Popen(['xdg-open', file_path])
elif os.name == 'nt' or sys.platform == 'win32':
file_path = os.path.normpath(file_path)
subprocess.Popen(['explorer', file_path])

def str2bool(self, v):
Expand Down
Binary file modified CKANBrowser.zip
Binary file not shown.

0 comments on commit 6f9f597

Please sign in to comment.