<?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: Is it possible to use MakeFeatureLayer_management out of process? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/is-it-possible-to-use-makefeaturelayer-management/m-p/661794#M51423</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are going to run it in ArcMap, why bother with the Tkinter form; isn't that what a pyt or just a script tool is used for?&amp;nbsp; I've always heard the ArcGIS and Tkinter don't play nice nice with each other.&amp;nbsp; Also, are the layers you are working with part of the ArcMap mxd?&amp;nbsp; I'm a little confused with what your end game is here; stand alone outside of ArcGIS or as a tool within ArcGIS?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Apr 2020 15:55:48 GMT</pubDate>
    <dc:creator>JoeBorgione</dc:creator>
    <dc:date>2020-04-08T15:55:48Z</dc:date>
    <item>
      <title>Is it possible to use MakeFeatureLayer_management out of process?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-use-makefeaturelayer-management/m-p/661793#M51422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all and thanks in advance for reading through my question,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm writing a python script that is selecting features from a GDB feature class and using the attributes from the selected features during my analysis.&amp;nbsp; I'm eventually displaying a Tkinter form to the user that displays the results.&amp;nbsp; My script works fine if I run it outside of ArcMap in a command prompt but if I run it inside as a script tool (out of process) it fails.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have worked through launching a script from a toolbox and running it "out of process" (unchecked Run Python script in process) to display the Tkinter form.&amp;nbsp; As long as I don't need to use MakeFeatureLayer_management, my form launches, displays results, and behaves as expected.&amp;nbsp; But since I need to create a layer from the GDB feeature class to be able to select features, I am running into the problem.&amp;nbsp; The resultant layer from MakeFeatureLayer_management causes the script to fail if it is run out of process which is needed if I want to display a Tkinter form.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code below should be able to recreate the problem I am having.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Run it from the command line - prints the spatial reference name twice&lt;/LI&gt;&lt;LI&gt;Run from a script tool with "&lt;SPAN&gt;Run Python script in process" &lt;SPAN style="text-decoration: underline;"&gt;checked&lt;/SPAN&gt; - outputs the spatial reference twice&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Run from a script tool with&amp;nbsp;"&lt;SPAN&gt;Run Python script in process"&lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN style="color: #000000; text-decoration: underline;"&gt; unchecked&lt;/SPAN&gt;&lt;/SPAN&gt; - crashes on line 8&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy

myGDB &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'C:\Data\myGeoDatabase.gdb'&lt;/SPAN&gt;
polyFeatureClass &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'Polys1'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Polys2'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; range&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;len&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;polyFeatureClass&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    polyLayer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MakeFeatureLayer_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;myGDB &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'\\'&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; polyFeatureClass&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; polyFeatureClass&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    sr &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Describe&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;polyLayer&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;spatialReference
    &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;sr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddMessage&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;sr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts on what might be causing this and how I might be able to get around it?&amp;nbsp; Is there another method to select feature from the feature class?&amp;nbsp; I read what appeared to be a similar question posed in 2014 (&lt;A _jive_internal="true" href="https://community.esri.com/thread/104854" target="_blank"&gt;https://community.esri.com/thread/104854&lt;/A&gt;) but the end solution was to run it outside of ArcMap.&amp;nbsp; I really want my users to be able to use the tool within ArcMap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Damian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:59:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-use-makefeaturelayer-management/m-p/661793#M51422</guid>
      <dc:creator>DamianKolbay</dc:creator>
      <dc:date>2021-12-12T03:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use MakeFeatureLayer_management out of process?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-use-makefeaturelayer-management/m-p/661794#M51423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are going to run it in ArcMap, why bother with the Tkinter form; isn't that what a pyt or just a script tool is used for?&amp;nbsp; I've always heard the ArcGIS and Tkinter don't play nice nice with each other.&amp;nbsp; Also, are the layers you are working with part of the ArcMap mxd?&amp;nbsp; I'm a little confused with what your end game is here; stand alone outside of ArcGIS or as a tool within ArcGIS?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2020 15:55:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-use-makefeaturelayer-management/m-p/661794#M51423</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-04-08T15:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use MakeFeatureLayer_management out of process?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-use-makefeaturelayer-management/m-p/661795#M51424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not working when I tried either, bit of a long shot but:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://support.esri.com/en/technical-article/000011468" title="https://support.esri.com/en/technical-article/000011468"&gt;Problem: Out of process Python scripts fail when run on an ArcGIS Server machine that has Data Interoperability for Serv…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2020 16:21:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-use-makefeaturelayer-management/m-p/661795#M51424</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2020-04-08T16:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use MakeFeatureLayer_management out of process?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-use-makefeaturelayer-management/m-p/661796#M51425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My goal is to allow a user to click on a map in ArcMap and display the results of the querying of many tables of a database based on the original feature that was clicked.&amp;nbsp; Basically, the user clicks a polygon, somewhere around 10 one to many database tables are queried and the results of the "tree" query are returned to the user in a format they are familiar with.&amp;nbsp; I can make the query without the Tkinter form, but displaying the results in an easy to understand format requires the nesting and merging of results into a display that I believe would be impossible to recreate without Tkinter or similar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yep, ArcGIS and Tkinter tend to disagree and cause problems; that's why the script has to be run out of process.&amp;nbsp; That way ArcMap and Tkinter don't interact.&amp;nbsp; The script starts a new python process, feeds it the parameters, and basically waits until the form is killed without ever communicating between the two processes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2020 16:24:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-use-makefeaturelayer-management/m-p/661796#M51425</guid>
      <dc:creator>DamianKolbay</dc:creator>
      <dc:date>2020-04-08T16:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use MakeFeatureLayer_management out of process?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-use-makefeaturelayer-management/m-p/661797#M51426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks David but unfortunately the Visual C++ packages are on my machine so that wasn't the issue.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2020 16:28:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-use-makefeaturelayer-management/m-p/661797#M51426</guid>
      <dc:creator>DamianKolbay</dc:creator>
      <dc:date>2020-04-08T16:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use MakeFeatureLayer_management out of process?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-use-makefeaturelayer-management/m-p/661798#M51427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you considered a &lt;A href="https://desktop.arcgis.com/en/arcmap/latest/analyze/python-addins/what-is-a-python-add-in.htm"&gt;Python Addin?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2020 16:28:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-use-makefeaturelayer-management/m-p/661798#M51427</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-04-08T16:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use MakeFeatureLayer_management out of process?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-use-makefeaturelayer-management/m-p/661799#M51428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I actually run the tool as an Addin.&amp;nbsp; The Addin creates a custom tool on the toolbar.&amp;nbsp; The tool allows the user to click on the map and collects the X,Y of the click and feeds that as parameters to the script within a toolbox.&amp;nbsp; The script then starts the out of process python process that can launch the Tkinter form.&amp;nbsp; From what I have found, there is no way to tell an Addin directly to spawn a new process to run the Tkinter form although even there was, I'd be back to the same issue of the out of (arcmap) process need to use&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;MakeFeatureLayer_management due to my reliance on Tkinter.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2020 16:41:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-use-makefeaturelayer-management/m-p/661799#M51428</guid>
      <dc:creator>DamianKolbay</dc:creator>
      <dc:date>2020-04-08T16:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use MakeFeatureLayer_management out of process?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-use-makefeaturelayer-management/m-p/661800#M51429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have not found a direct solution to fixing my problem, but I did find a work around that seems like it will be sufficient for now.&amp;nbsp; If I use the built in Python subprocess module to spawn a new Python process (instead of trying to run the script out of process through ArcMap) the script is happy to complete successfully in the new process.&amp;nbsp; I would have expected by unchecking "run in process" that ArcMap would have spawned a new process in the same manor as the subprocess module but somehow they are different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The original makeFeauture script:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;# Saved module as makeFeature.py&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#------------------------------------------------------&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy

myGDB &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'C:\Data\myGeoDatabase.gdb'&lt;/SPAN&gt;
polyFeatureClass &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'Polys1'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Polys2'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; range&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;len&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;polyFeatureClass&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    polyLayer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MakeFeatureLayer_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;myGDB &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'\\'&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; polyFeatureClass&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; polyFeatureClass&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    sr &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Describe&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;polyLayer&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;spatialReference
    &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;sr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddMessage&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;sr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And now the subprocess script that launches the makeFeature.py script:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;# saved as subprocess.py&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#------------------------------------------&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; subprocess &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; call
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; sys
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; os

pydir &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; sys&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;exec_prefix
pyexe &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;path&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pydir&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"python.exe"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

call&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;pyexe&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;  &lt;SPAN class="string token"&gt;'C:\\Data\\makeFeature.py'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The subprocess.py script can now be called directly from the Addin script instead of having to use a toolbox script without crashing.&amp;nbsp; I had to eventually configure the subprocess script to know where the makeFeature script is located so&amp;nbsp;some&amp;nbsp;path/file location handling is needed.&amp;nbsp; Not the best solution but one I believe I can deal with for now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:59:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-use-makefeaturelayer-management/m-p/661800#M51429</guid>
      <dc:creator>DamianKolbay</dc:creator>
      <dc:date>2021-12-12T03:59:46Z</dc:date>
    </item>
  </channel>
</rss>

