From 4a9edff7ffb3accb2959e59319b8c585df29a6ea Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Mon, 17 Jun 2013 18:29:57 +0200 Subject: [PATCH] only chdir on linux --- Qwad.pyw | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Qwad.pyw b/Qwad.pyw index 2436656..0465f3e 100644 --- a/Qwad.pyw +++ b/Qwad.pyw @@ -8,10 +8,11 @@ from PyQt4.QtCore import QTranslator, QString, QLocale from GUI.VenPri import MWQwad, nusDownloadingCLI, PackingCLI, UnpackingCLI, ShowTMD from TitleIDs import TitleDict, IOSdict, swap_dic, ChannelCLIDict, ChannelJAPDict, ChannelPALDict, ChannelUSADict, ChannelJAPVerDict, ChannelPALVerDict, ChannelUSAVerDict -if os.getenv("QWAD_X_DIR"): - os.chdir(os.getenv("QWAD_X_DIR")) -else: - os.chdir(os.getenv("HOME")) +if sys.platform.startswith('linux'): + if os.getenv("QWAD_X_DIR"): + os.chdir(os.getenv("QWAD_X_DIR")) + else: + os.chdir(os.getenv("HOME")) class MultipleOption(Option): ACTIONS = Option.ACTIONS + ("extend",)