Update leenkx/blender/lnx/utils.py
This commit is contained in:
parent
c6f672bd61
commit
f101124d24
@ -363,6 +363,25 @@ def krom_paths():
|
|||||||
krom_path = krom_location + '/Krom'
|
krom_path = krom_location + '/Krom'
|
||||||
return krom_location, krom_path
|
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():
|
def fetch_bundled_script_names():
|
||||||
wrd = bpy.data.worlds['Lnx']
|
wrd = bpy.data.worlds['Lnx']
|
||||||
wrd.lnx_bundled_scripts_list.clear()
|
wrd.lnx_bundled_scripts_list.clear()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user