<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do you call a Script from a Script???? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-do-you-call-a-script-from-a-script/m-p/262852#M20272</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;When I import a module I've written, I also like to reload the module to update any changes I may have made to it, so:&lt;BR /&gt;&lt;BR /&gt;sys.path.append(r'modulePath')&lt;BR /&gt;import module&lt;BR /&gt;reload(module)&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The reload() is only necessary if you are in an interactive python session. An import will always read your (updated) source at compilation time, unless the module was already imported "upstream", ie by code that is calling your program.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Fraxinus: you can also import a toolbox and run a script (in the toolbox) that way. &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Calling a script tool from a script works, but can cause problems with performance and stability. A better way to call another script is to set it up so you can call the script either as a script tool or as a Python function. This is done using the __name__ property, which is always '__main__' when you are running the script directly, say, as a script tool, double clicking the .py file, or entering the name of the .py file at a system prompt. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There's a nice example of this in this Esri blog post by Dale Honeycutt:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://blogs.esri.com/esri/arcgis/2011/08/04/pythontemplate/"&gt;&lt;BR /&gt;'&amp;gt;ArcGIS Blog: PythonTemplate&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To reiterate what Dan pointed out, the folder "." (relative to the script) is always in the sys.path, so if you if the other script is in the same folder as this one&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;import script2.py&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;will find it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can place a folder scripts at paths relative to the your script and locate them this way:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;PRE&gt;import sys&lt;/PRE&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import os&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here = os.path.dirname(sys.argv[0])&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sys.path.append(Here + "/utils")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import script2 # will find here/Utils/script2.py&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can also set up a "package" to look through a whole folder tree, but that's generally beyond the scope of a simple ArcGIS script tool.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 May 2012 21:24:55 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2012-05-30T21:24:55Z</dc:date>
    <item>
      <title>How do you call a Script from a Script????</title>
      <link>https://community.esri.com/t5/python-questions/how-do-you-call-a-script-from-a-script/m-p/262845#M20265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm creating what I call a "Script Manager" that will fire a script based on product type.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So, if the user inputs Aerial or Radius, the appropriate script is ran.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can get this to run using os.system('python C:\Sample.py' + parameter variables)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem with this is the script is run through python window.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been told it is more effective to use an import statement, something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if Product == "Aerial":&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; import ("C:\Sample.py")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What am I missing???&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 17:31:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-you-call-a-script-from-a-script/m-p/262845#M20265</guid>
      <dc:creator>AaronPaul</dc:creator>
      <dc:date>2011-03-30T17:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do you call a Script from a Script????</title>
      <link>https://community.esri.com/t5/python-questions/how-do-you-call-a-script-from-a-script/m-p/262846#M20266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here is a sample program that imports a user module which contains functions&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
'''
Main_program.py

demonstrates how to import and call functions from another module
'''
import CallingFunctions

a_list = [1,2,3,4,5,6,7,8,9,10]

print CallingFunctions.func1(a_list)
print CallingFunctions.func5(a_list)
print CallingFunctions.func8(a_list)
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The module that is imported is here&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
'''
Callingfunctions.py

imported into another program giving it access to the functions
'''

def func1(inputs=None):
&amp;nbsp; x = sum(inputs)
&amp;nbsp; return "sum some numbers: ", x
'''
more functions
'''
def func5(inputs=None):
&amp;nbsp; x_sq = 0
&amp;nbsp; for x in inputs:
&amp;nbsp;&amp;nbsp;&amp;nbsp; x_sq += x**2
&amp;nbsp; return "sum of squares: ", x_sq
'''
more functions
'''
def func8(inputs=None):
&amp;nbsp; return "hello from 8: ", inputs

'''
more functions
'''
if __name__ == "__main__":
&amp;nbsp; a_list = [1,2,3,4,5,6,7,8,9,10]
&amp;nbsp; inputs = "test inputs"
&amp;nbsp; a_dict = {1:[func1([1,2,3]) ],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5:[func5([1,2,3])],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8:[func8("inputs to 8")]}
&amp;nbsp; needed = [1,5,8]
&amp;nbsp; for akey in needed:
&amp;nbsp;&amp;nbsp;&amp;nbsp; if akey in a_list:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; action = a_dict[akey]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "\naction: ", action
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if the two *.py files are located within the same directory, you can import the CallingFunctions module and use its functions from the Main_program.&amp;nbsp; In this manner you can create "helper" modules that can be used by other programs.&amp;nbsp; you should also note, that for testing purposes, the CallingFunctions can be run in standalone mode with the addition of the code block denoted by the "if" statement towards the end&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:53:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-you-call-a-script-from-a-script/m-p/262846#M20266</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T12:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do you call a Script from a Script????</title>
      <link>https://community.esri.com/t5/python-questions/how-do-you-call-a-script-from-a-script/m-p/262847#M20267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The Python import statement looks for the specified "module" (aka a .py/.pyc file) in all the directories that are listed in sys.path(). For me, these include: ['C:\\Program Files\\ArcGIS\\bin', 'C:\\WINDOWS\\system32\\python25.zip', 'C:\\Python25\\DLLs', 'C:\\Python25\\lib', 'C:\\Python25\\lib\\plat-win', 'C:\\Python25\\lib\\lib-tk', 'C:\\Python25\\Lib\\site-packages\\pythonwin', 'C:\\Python25', 'C:\\Python25\\lib\\site-packages', 'C:\\Python25\\lib\\site-packages\\win32', 'C:\\Python25\\lib\\site-packages\\win32\\lib']&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It easiest just to put your module in one of these default paths. However, if you make your own module, and say want to put it out on a network location somewhere:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import sys&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;networkPath = r"\\mynetwork\gis\py_files" #aka the folder where the mymodule.py file is located&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sys.append(networkPath)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import mymodule&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mymodule.myFunction(arg1,arg2)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 22:57:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-you-call-a-script-from-a-script/m-p/262847#M20267</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2011-03-30T22:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do you call a Script from a Script????</title>
      <link>https://community.esri.com/t5/python-questions/how-do-you-call-a-script-from-a-script/m-p/262848#M20268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;and to add to that path list, it looks in the path where the main script resides, which makes it useful and easier to distribute scripts and toolboxes as one grouping in one folder&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 07:41:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-you-call-a-script-from-a-script/m-p/262848#M20268</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2011-03-31T07:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do you call a Script from a Script????</title>
      <link>https://community.esri.com/t5/python-questions/how-do-you-call-a-script-from-a-script/m-p/262849#M20269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;It easiest just to put your module in one of these default paths. However, if you make your own module, and say want to put it out on a network location somewhere:&lt;BR /&gt;&lt;BR /&gt;import sys&lt;BR /&gt;networkPath = r"\\mynetwork\gis\py_files" #aka the folder where the mymodule.py file is located&lt;BR /&gt;sys.append(networkPath)&lt;BR /&gt;import mymodule&lt;BR /&gt;mymodule.myFunction(arg1,arg2)&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just a small correction: the correct syntax is sys.path.append(networkPath). Thank you for this thread, guys.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 20:15:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-you-call-a-script-from-a-script/m-p/262849#M20269</guid>
      <dc:creator>JamieKass</dc:creator>
      <dc:date>2012-05-29T20:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do you call a Script from a Script????</title>
      <link>https://community.esri.com/t5/python-questions/how-do-you-call-a-script-from-a-script/m-p/262850#M20270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you can also import a toolbox and run a script (in the toolbox) that way.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 10:54:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-you-call-a-script-from-a-script/m-p/262850#M20270</guid>
      <dc:creator>HugoAhlenius</dc:creator>
      <dc:date>2012-05-30T10:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do you call a Script from a Script????</title>
      <link>https://community.esri.com/t5/python-questions/how-do-you-call-a-script-from-a-script/m-p/262851#M20271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When I import a module I've written, I also like to reload the module to update any changes I may have made to it, so:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sys.path.append(r'modulePath')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import module&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;reload(module)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 14:57:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-you-call-a-script-from-a-script/m-p/262851#M20271</guid>
      <dc:creator>ChrisBater</dc:creator>
      <dc:date>2012-05-30T14:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do you call a Script from a Script????</title>
      <link>https://community.esri.com/t5/python-questions/how-do-you-call-a-script-from-a-script/m-p/262852#M20272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;When I import a module I've written, I also like to reload the module to update any changes I may have made to it, so:&lt;BR /&gt;&lt;BR /&gt;sys.path.append(r'modulePath')&lt;BR /&gt;import module&lt;BR /&gt;reload(module)&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The reload() is only necessary if you are in an interactive python session. An import will always read your (updated) source at compilation time, unless the module was already imported "upstream", ie by code that is calling your program.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Fraxinus: you can also import a toolbox and run a script (in the toolbox) that way. &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Calling a script tool from a script works, but can cause problems with performance and stability. A better way to call another script is to set it up so you can call the script either as a script tool or as a Python function. This is done using the __name__ property, which is always '__main__' when you are running the script directly, say, as a script tool, double clicking the .py file, or entering the name of the .py file at a system prompt. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There's a nice example of this in this Esri blog post by Dale Honeycutt:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://blogs.esri.com/esri/arcgis/2011/08/04/pythontemplate/"&gt;&lt;BR /&gt;'&amp;gt;ArcGIS Blog: PythonTemplate&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To reiterate what Dan pointed out, the folder "." (relative to the script) is always in the sys.path, so if you if the other script is in the same folder as this one&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;import script2.py&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;will find it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can place a folder scripts at paths relative to the your script and locate them this way:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;PRE&gt;import sys&lt;/PRE&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import os&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here = os.path.dirname(sys.argv[0])&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sys.path.append(Here + "/utils")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import script2 # will find here/Utils/script2.py&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can also set up a "package" to look through a whole folder tree, but that's generally beyond the scope of a simple ArcGIS script tool.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 21:24:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-you-call-a-script-from-a-script/m-p/262852#M20272</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2012-05-30T21:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do you call a Script from a Script????</title>
      <link>https://community.esri.com/t5/python-questions/how-do-you-call-a-script-from-a-script/m-p/262853#M20273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Go the import route or use the &lt;/SPAN&gt;&lt;A href="http://docs.python.org/library/functions.html?highlight=execfile#execfile"&gt;execfile&lt;/A&gt;&lt;SPAN&gt; function.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 01:42:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-you-call-a-script-from-a-script/m-p/262853#M20273</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2012-05-31T01:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do you call a Script from a Script????</title>
      <link>https://community.esri.com/t5/python-questions/how-do-you-call-a-script-from-a-script/m-p/262854#M20274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This Esri documentation may be of use in this topic as well:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/geoprocessing_and_python/extending-geoprocessing-through-python-modules.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/geoprocessing_and_python/extending-geoprocessing-through-python-modules.htm"&gt;Extending geoprocessing through Python modules—Geoprocessing and Python | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2020 18:08:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-you-call-a-script-from-a-script/m-p/262854#M20274</guid>
      <dc:creator>AndresCastillo</dc:creator>
      <dc:date>2020-03-11T18:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do you call a Script from a Script????</title>
      <link>https://community.esri.com/t5/python-questions/how-do-you-call-a-script-from-a-script/m-p/262855#M20275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This thread is 9 years old &lt;A href="https://community.esri.com/migrated-users/235058"&gt;Andres Castillo&lt;/A&gt;‌ python 3 had only been out for less than a year &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2020 18:12:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-you-call-a-script-from-a-script/m-p/262855#M20275</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-03-11T18:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do you call a Script from a Script????</title>
      <link>https://community.esri.com/t5/python-questions/how-do-you-call-a-script-from-a-script/m-p/262856#M20276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In case anyone is looking for that Python template webpage, it can be found here:&lt;/P&gt;&lt;P&gt;&lt;A class="jivelink8" href="https://web.archive.org/web/20151217180732/http://blogs.esri.com:80/esri/arcgis/2011/08/04/pythontemplate/" title="https://web.archive.org/web/20151217180732/http://blogs.esri.com:80/esri/arcgis/2011/08/04/pythontemplate/"&gt;https://web.archive.org/web/20151217180732/http://blogs.esri.com:80/esri/arcgis/2011/08/04/pythontemplate/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2020 19:42:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-you-call-a-script-from-a-script/m-p/262856#M20276</guid>
      <dc:creator>AndresCastillo</dc:creator>
      <dc:date>2020-03-11T19:42:50Z</dc:date>
    </item>
  </channel>
</rss>

