Esempio n. 1
0
 def _get_name(self, name, import_setting):
     if import_setting.type == 'Library' and not self._is_library_by_path(
             name):
         return name
     return find_file(name,
                      import_setting.directory,
                      file_type=import_setting.type)
Esempio n. 2
0
 def _set_cli_variables(self, settings):
     for path, args in settings.variable_files:
         try:
             path = find_file(path, file_type='Variable file')
             self.set_from_file(path, args)
         except:
             msg, details = get_error_details()
             LOGGER.error(msg)
             LOGGER.info(details)
     for varstr in settings.variables:
         try:
             name, value = varstr.split(':', 1)
         except ValueError:
             name, value = varstr, ''
         self['${%s}' % name] = value
Esempio n. 3
0
File: scopes.py Progetto: Garjy/RIDE
 def _set_cli_variables(self, settings):
     for path, args in settings.variable_files:
         try:
             path = find_file(path, file_type='Variable file')
             self.set_from_file(path, args)
         except:
             msg, details = get_error_details()
             LOGGER.error(msg)
             LOGGER.info(details)
     for varstr in settings.variables:
         try:
             name, value = varstr.split(':', 1)
         except ValueError:
             name, value = varstr, ''
         self['${%s}' % name] = value
Esempio n. 4
0
 def _get_name(self, name, import_setting):
     if import_setting.type == 'Library' and not self._is_library_by_path(name):
         return name
     return find_file(name, import_setting.directory,
                      file_type=import_setting.type)
Esempio n. 5
0
 def _get_name(self, name, basedir, import_type):
     if import_type == 'Library' and not self._is_library_by_path(name):
         return name.replace(' ', '')
     return find_file(name, basedir, file_type=import_type)
Esempio n. 6
0
 def _get_name(self, name, basedir, import_type):
     if import_type == 'Library' and not self._is_library_by_path(name):
         return name.replace(' ', '')
     return find_file(name, basedir, file_type=import_type)