Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

QML env variables

New Here ,
Oct 20, 2022 Oct 20, 2022

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"

TOPICS
Scripting
201
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation