def get_additional_command_line_sys_path():
    """Function that retrieves additional sys.path of the command line"""
    script_str = "import sys; import json; pickled_str = json.dumps(sys.path); print(pickled_str)"
    result = subprocess.run(
        [_get_python_exe_path(), "-c", script_str],
        stdout=PIPE,
        stderr=PIPE,
    )

    command_line_sys_paths = json.loads(result.stdout)
    blender_sys_paths = copy.deepcopy(sys.path)

    additional_system_paths = []
    for command_line_sys_path in command_line_sys_paths:
        if command_line_sys_path not in blender_sys_paths:
            if command_line_sys_path != "":
                log_report(
                    "INFO", f"Add missing sys.path: {command_line_sys_path}"
                )
                additional_system_paths.append(command_line_sys_path)
    return additional_system_paths
Function that retrieves additional sys.path of the command line
photogrammetry_importer/preferences/dependency.py