def addInstrument (self, **params): params["type"] = ParameterType.INSTRUMENT self.addParameters(params) if self._needInstrumentsPath: if not "PATHS" in self._helpGroups: self.addHelpGroup("PATHS", "Object Paths") self.addParameters(dict(name="inst_dir", short="I", long="instruments-dir", helpGroup="PATHS", type=ParameterType.INCLUDE_PATH, default=[ChimeraPath.instruments()], help="Append PATH to %s load path. " "This option could be setted multiple " "times to add multiple directories." % params["name"].capitalize(), metavar="PATH")) self._needInstrumentsPath = False
def __init__(self, args = [], wait=True): self.wait = wait self.options, self.args = self.parseArgs(args) if self.options.verbose == 1: chimera.core.log.setConsoleLevel(logging.INFO) if self.options.verbose > 1: chimera.core.log.setConsoleLevel(logging.DEBUG) self.manager = None self.paths = {"instruments": [], "controllers": []} # add system path self.paths["instruments"].append(ChimeraPath.instruments()) self.paths["controllers"].append(ChimeraPath.controllers())
def __init__(self, args=[], wait=True): self.wait = wait self.options, self.args = self.parseArgs(args) if self.options.verbose == 1: chimera.core.log.setConsoleLevel(logging.INFO) if self.options.verbose > 1: chimera.core.log.setConsoleLevel(logging.DEBUG) self.manager = None self.paths = {"instruments": [], "controllers": [], "drivers": []} # add system path self.paths["instruments"].append(ChimeraPath.instruments()) self.paths["controllers"].append(ChimeraPath.controllers()) self.paths["drivers"].append(ChimeraPath.drivers())
def addInstrument(self, **params): params["type"] = ParameterType.INSTRUMENT self.addParameters(params) if self._needInstrumentsPath: if not "PATHS" in self._helpGroups: self.addHelpGroup("PATHS", "Object Paths") self.addParameters( dict(name="inst_dir", short="I", long="instruments-dir", helpGroup="PATHS", type=ParameterType.INCLUDE_PATH, default=[ChimeraPath.instruments()], help="Append PATH to %s load path. " "This option could be setted multiple " "times to add multiple directories." % params["name"].capitalize(), metavar="PATH")) self._needInstrumentsPath = False