Exemplo n.º 1
0
 def __init__(self):
     Application.__init__(self)
     
     _logger.debug("Creating directories")
     self.config_dir = utilities.XDG(self.PRODUCT_NAME).get_config_dir()
     self.script_dir = os.path.join(self.config_dir, "scripts")
     utilities.makedirs_if_not_exists(self.config_dir)
     utilities.makedirs_if_not_exists(self.script_dir)
     
     self.scriptr  = scripting.Runner(self.script_dir)
Exemplo n.º 2
0
 def __init__(self):
     Application.__init__(self)
     
     _logger.debug("Creating directories")
     self.config_dir = utilities.XDG(self.PRODUCT_NAME).get_config_dir()
     self.script_dir = os.path.join(self.config_dir, "scripts")
     utilities.makedirs_if_not_exists(self.config_dir)
     utilities.makedirs_if_not_exists(self.script_dir)
     
     self.scriptr  = scripting.Runner(self.script_dir)
Exemplo n.º 3
0
    def __init__(self, config_dir, args):
        Application.__init__(self)

        self.config_dir = config_dir

        # Set up scripting
        scripts_dir = os.path.join(self.config_dir, "scripts")
        utilities.makedirs_if_not_exists(scripts_dir)
        self.scriptr = scripting.Runner(scripts_dir)

        self._device = None
        self._uploading = args.upload
        self._pair = args.pair
        self._skip_archived = args.skip_archived
Exemplo n.º 4
0
    def __init__(self, config_dir, args):
        Application.__init__(self)

        self.config_dir = config_dir

        # Set up scripting
        scripts_dir = os.path.join(self.config_dir, "scripts")
        utilities.makedirs_if_not_exists(scripts_dir)
        self.scriptr = scripting.Runner(scripts_dir)

        self._device = None
        self._uploading = args.upload
        self._pair = args.pair
        self._skip_archived = args.skip_archived
Exemplo n.º 5
0
    def __init__(self, args):
        Application.__init__(self)

        self._auth = args.auth
        if self._auth == "passkey":
            self._passkey = [int(x, 16) for x in args.passkey.split(':')]
        self._action = args.action
        if self._action == "erase":
            self._index = args.index
        elif self._action == "download":
            self._file = args.file
            self._index = args.index
        elif self._action == "upload":
            self._file = args.file
            self._index = args.index
            self._type = getattr(File.Identifier, args.type.upper())
Exemplo n.º 6
0
 def __init__(self):
     Application.__init__(self)