diff --git a/leenkx/blender/lnx/utils.py b/leenkx/blender/lnx/utils.py index 0dc4b97..4730cfd 100644 --- a/leenkx/blender/lnx/utils.py +++ b/leenkx/blender/lnx/utils.py @@ -363,6 +363,25 @@ def krom_paths(): krom_path = krom_location + '/Krom' return krom_location, krom_path +def hashlink_paths(target): + """Returns path for Hashlink runtime target.""" + sdk_path = get_sdk_path() + proj_name = blend_name() + build_base_dir = get_fp_build() + + + if target in ('windows-hl', 'linux-hl', 'macos-hl'): + hl_build_dir = os.path.join(build_base_dir, target + '-build') + log.info(f"Identified Hashlink/C build directory: {hl_build_dir}") + + return hl_build_dir, None, None # Return build_dir, no file, no interpreter + + else: + return '', None, None + + + + def fetch_bundled_script_names(): wrd = bpy.data.worlds['Lnx'] wrd.lnx_bundled_scripts_list.clear()