Created
August 4, 2019 06:17
-
-
Save raganmd/6218305b66c4f9b9d3088807f82d5ea8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
toe_file = 'path\\to\\your\\file.toe' | |
# set environment variable | |
toe_env_var = 'controller' | |
os.environ['STARTUP'] = toe_env_var | |
os.startfile(toe_file) | |
print("startting file with {}".format(toe_env_var)) | |
# set environment variable | |
toe_env_var = 'node' | |
os.environ['STARTUP'] = toe_env_var | |
os.startfile(toe_file) | |
print("startting file with {}".format(toe_env_var)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment