INNER CODE UNIT · Python

dest

Silverlan/pragma · build_scripts/generate_appimage.py:100

                dest = appdir_usr_lib / so_file.name
                if not dest.exists():
                    shutil.copy(so_file, dest, follow_symlinks=False)

    # Make sure usr/lib folder is in the LD path string
    ld_paths_to_add = [appdir_lib_path, str(appdir_usr_lib)] + list(deps_lib_paths)
    ld_path_string = ":".join(ld_paths_to_add)

    existing_ld_path = os.environ.get("LD_LIBRARY_PATH", "")

    if existing_ld_path:
        os.environ["LD_LIBRARY_PATH"] = f"{ld_path_string}:{existing_ld_path}"
    else:
        os.environ["LD_LIBRARY_PATH"] = ld_path_string

    if no_strip:
        os.environ["NO_STRIP"] = "1"

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…