Skip to content

Commit

Permalink
Add cross platform path to root
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanC committed Oct 21, 2018
1 parent 664178c commit 1b5fbc7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/windows/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ def __init__(self):
tabWidget.layout().addStretch()

def selectExecutable(self, widget, param):
fileName, _ = QFileDialog.getOpenFileName(self,"Select executable file", "/","All Files (*)")
path = os.path.abspath(os.sep)
fileName, _ = QFileDialog.getOpenFileName(self,"Select executable file", path,"All Files (*)")
if fileName:
self.s.set(param["setting"], fileName)
widget.setText(fileName)
Expand Down

0 comments on commit 1b5fbc7

Please sign in to comment.