def __init__(self, score_package_path=None, session=None): score_directory_path = \ self.configuration.packagesystem_path_to_filesystem_path( score_package_path) filesystem_path = os.path.join(score_directory_path, 'distribution') DirectoryManager.__init__( self, filesystem_path=filesystem_path, session=session)
def __init__(self, path=None, session=None): if path is not None: assert os.path.sep in path DirectoryManager.__init__( self, path=path, session=session, ) package_name = None if path is not None: self._package_name = os.path.basename(self._path)
def __init__(self, packagesystem_path=None, session=None): if packagesystem_path is None or \ os.path.sep not in packagesystem_path: filesystem_path = \ self.configuration.packagesystem_path_to_filesystem_path( packagesystem_path) else: filesystem_path = packagesystem_path assert '.' not in filesystem_path, repr(filesystem_path) DirectoryManager.__init__(self, filesystem_path=filesystem_path, session=session, ) packagesystem_path = \ self.configuration.filesystem_path_to_packagesystem_path( filesystem_path) assert os.path.sep not in packagesystem_path, repr(packagesystem_path) self._package_path = packagesystem_path