Skip to main content
Participant
October 20, 2022
Question

QML env variables

  • October 20, 2022
  • 0 replies
  • 237 views

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"

This topic has been closed for replies.