Copy link to clipboard
Copied
Is it possible to use environment variables in a JS (QML) file? I have a path setup to point to a Python script and all is working. But, the head of the path is actually an environment vasriable available to a network shared area. How would I go about pointing to the env var?
Current:
var mapExport_script_path = "Z:\\main\\Tools\\Python\\ArtTools\\substance\\python\\mapExport.py"
Desired:
var mapExport_script_path = "%SHARED_REPO_PATH%\\substance\\python\\mapExport.py"
Have something to add?