def set_roblox_document_path(): src_path = os.path.join(variables.assets_dir(), "roblox_documents_folder.reg") patches = dict() documents_dir = "Z:" + variables.xdg_documents().replace("/", "\\\\") patches["DOCUMENTS_DIR"] = documents_dir LOG.info(f"Setting the roblox documents directory to '{documents_dir}'") with open(src_path, "r") as fp: load_regs(fp.readlines(), patches)
def __init__(self, path: str = None): if path is None: path = os.path.join(variables.assets_dir(), "dist_info.json") self._path = path with open(self._path, "r") as fp: self._info = json.load(fp) LOG.debug(f"Loaded distribution info from {self._path}") LOG.info(f"Distribution type: {self.distribution_type}")
def load_dll_overrides(): load_reg(os.path.join(variables.assets_dir(), "dll_overrides.reg"))
def disable_mime_assoc(): load_reg(os.path.join(variables.assets_dir(), "disable_mime_assoc.reg"))
def copy_assets(log): assets_src = v.assets_dir() assets_dst = os.path.join(app_dir, "app", "assets") log.info(f"Copying tree: {assets_src} -> {assets_dst}") shutil.copytree(assets_src, assets_dst)