Permalink
Browse files

Cosmetic fix: slashes in paths are now platform-correct.

  • Loading branch information...
Vultaire committed Jun 10, 2012
1 parent 779e3c8 commit 83079377e0857c7e8870a3d5e6ac4bb4dc765add
Showing with 2 additions and 0 deletions.
  1. +2 −0 r21buddy/r21buddy_gui.py
View
@@ -43,6 +43,7 @@ def on_browse(self):
if len(initialdir) > 0:
dialog_args["initialdir"] = initialdir
path = tkFileDialog.askdirectory(**dialog_args)
+ path = path.replace("/", os.sep)
if len(path) > 0:
self.str_var.set(path)
@@ -138,6 +139,7 @@ def on_inputdir_add(self):
if self.last_dir is not None:
dialog_kwargs["initialdir"] = self.last_dir
path = tkFileDialog.askdirectory(**dialog_kwargs)
+ path = path.replace("/", os.sep)
if len(path) == 0:
return
self.last_dir = path

0 comments on commit 8307937

Please sign in to comment.