Open GoogleCodeExporter opened 8 years ago
Think there's a slight bug in the patch in that is has 2 Mac options and no
Windows :)
I suggest instead:
if sys.platform == 'linux2':
subprocess.Popen(['xdg-open', settings.save_dir])
elif sys.platform == 'darwin':
subprocess.Popen(['open', settings.save_dir])
elif sys.platform == 'win32':
os.startfile(settings.save_dir)
else:
webbrowser.open(settings.save_dir)
Not sure about 64-bit Windows's ID.
Original comment by fnx...@gmail.com
on 28 Jul 2012 at 10:51
[deleted comment]
Well, would you look at that. OK, looks like you've got it.
The Python documentation (http://docs.python.org/library/sys.html#sys.platform)
seems to suggest that the ID for windows is 'win32' regardless of the platform.
(Edit: damn wikisyntax)
Original comment by jsphs...@gmail.com
on 8 Oct 2012 at 10:34
Original issue reported on code.google.com by
jsphs...@gmail.com
on 15 Apr 2012 at 7:52Attachments: