only chdir on linux

This commit is contained in:
Christopher Roy Bratusek 2013-06-17 18:29:57 +02:00
parent 8f43b74dd4
commit 4a9edff7ff

View File

@ -8,10 +8,11 @@ from PyQt4.QtCore import QTranslator, QString, QLocale
from GUI.VenPri import MWQwad, nusDownloadingCLI, PackingCLI, UnpackingCLI, ShowTMD from GUI.VenPri import MWQwad, nusDownloadingCLI, PackingCLI, UnpackingCLI, ShowTMD
from TitleIDs import TitleDict, IOSdict, swap_dic, ChannelCLIDict, ChannelJAPDict, ChannelPALDict, ChannelUSADict, ChannelJAPVerDict, ChannelPALVerDict, ChannelUSAVerDict from TitleIDs import TitleDict, IOSdict, swap_dic, ChannelCLIDict, ChannelJAPDict, ChannelPALDict, ChannelUSADict, ChannelJAPVerDict, ChannelPALVerDict, ChannelUSAVerDict
if os.getenv("QWAD_X_DIR"): if sys.platform.startswith('linux'):
os.chdir(os.getenv("QWAD_X_DIR")) if os.getenv("QWAD_X_DIR"):
else: os.chdir(os.getenv("QWAD_X_DIR"))
os.chdir(os.getenv("HOME")) else:
os.chdir(os.getenv("HOME"))
class MultipleOption(Option): class MultipleOption(Option):
ACTIONS = Option.ACTIONS + ("extend",) ACTIONS = Option.ACTIONS + ("extend",)