1stAmerican

How do you call a Script from a Script????

Discussion created by 1stAmerican on Mar 30, 2011
Latest reply on May 30, 2012 by JScheirer-esristaff
I'm creating what I call a "Script Manager" that will fire a script based on product type.
So, if the user inputs Aerial or Radius, the appropriate script is ran.

I can get this to run using os.system('python C:\Sample.py' + parameter variables)
The problem with this is the script is run through python window.

I've been told it is more effective to use an import statement, something like this:
if Product == "Aerial":
      import ("C:\Sample.py")

What am I missing???

Outcomes