Is there a way to call a variable from one script file in the Extension Builder in another script? For example, I want workdir to be available to me in other Extension Builder tabs/scripts.
workdir
Create a script (for example globals.py) in the active folder and define:
globals.py
# globals.py
workdir = None
Then in another script(active file where variable is defined):
import globals
globals.workdir = ExtAPI.Extension.InstallDir
And elsewhere:
print(globals.workdir)