def __init__(self, parent, test =True, install =True, check =False, verbose =True, **kwargs): """Creates a new instance of MayaIniRemoteThread.""" super(MayaIniRemoteThread, self).__init__(parent, **kwargs) self._test = test self._verbose = verbose self._install = install self._check = check self._output = {} self._cadenceEntry = MayaEnvEntry.fromRootPath(FileUtils.createPath( FileUtils.getDirectoryOf(cadence.__file__), noTail=True)) self._elixirEntry = MayaEnvEntry.fromRootPath(FileUtils.createPath( FileUtils.getDirectoryOf(elixir.__file__), noTail=True))
def _getSourcePaths(cls, otherPaths =None): nimbleEntry = MayaEnvEntry.fromRootPath(FileUtils.createPath( FileUtils.getDirectoryOf(nimble.__file__), noTail=True) ) pyaidEntry = MayaEnvEntry.fromRootPath(FileUtils.createPath( FileUtils.getDirectoryOf(pyaid.__file__), noTail=True) ) pyglassEntry = MayaEnvEntry.fromRootPath(FileUtils.createPath( FileUtils.getDirectoryOf(pyglass.__file__), noTail=True) ) additions = [nimbleEntry, pyaidEntry, pyglassEntry] if not otherPaths: return additions for p in otherPaths: additions.append( p if isinstance(p, MayaEnvEntry) else MayaEnvEntry.fromRootPath(p) ) return additions
def _getSourcePaths(cls, otherPaths=None): nimbleEntry = MayaEnvEntry.fromRootPath( FileUtils.createPath(FileUtils.getDirectoryOf(nimble.__file__), noTail=True)) pyaidEntry = MayaEnvEntry.fromRootPath( FileUtils.createPath(FileUtils.getDirectoryOf(pyaid.__file__), noTail=True)) pyglassEntry = MayaEnvEntry.fromRootPath( FileUtils.createPath(FileUtils.getDirectoryOf(pyglass.__file__), noTail=True)) additions = [nimbleEntry, pyaidEntry, pyglassEntry] if not otherPaths: return additions for p in otherPaths: additions.append(p if isinstance(p, MayaEnvEntry) else MayaEnvEntry .fromRootPath(p)) return additions