Skip to content

Instantly share code, notes, and snippets.

@raganmd
Created August 4, 2019 06:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raganmd/6218305b66c4f9b9d3088807f82d5ea8 to your computer and use it in GitHub Desktop.
Save raganmd/6218305b66c4f9b9d3088807f82d5ea8 to your computer and use it in GitHub Desktop.
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