Ejemplo n.º 1
0
    def __init__(self):

        sys_type = co.getSystemType()

        self.pwd = os.path.abspath(os.path.split(__file__)[0])
        self.user_home = os.path.expanduser("~")
        self.restart = False
        self.taskbar_icon = None

        if sys_type != "win":
            self.working_path = os.path.join(self.user_home, ".SwitchHosts")
        else:
            self.working_path = self.pwd
Ejemplo n.º 2
0
    def __init__(self):

        sys_type = co.getSystemType()

        self.pwd = os.path.abspath(os.path.split(__file__)[0])
        self.user_home = os.path.expanduser("~")
        self.restart = False
        self.taskbar_icon = None

        if sys_type != "win":
            self.working_path = os.path.join(self.user_home, ".SwitchHosts")
        else:
            self.working_path = self.pwd