<?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: python for Pro: how to set File Path parameter in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-for-pro-how-to-set-file-path-parameter/m-p/437134#M34357</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;where is argv defined?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Aug 2020 15:44:39 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2020-08-21T15:44:39Z</dc:date>
    <item>
      <title>python for Pro: how to set File Path parameter</title>
      <link>https://community.esri.com/t5/python-questions/python-for-pro-how-to-set-file-path-parameter/m-p/437133#M34356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;My python codes were generated from ModelBuilder.&amp;nbsp; At the process of "Table To Excel"&amp;nbsp; I&amp;nbsp;need to have 2 parameters: File_Path and File_Name.&amp;nbsp; So in "Properties" of Script, I add those 2 parameters but the parameter for File Path doesn't work. No error but file was saved to the "Scratch" folder.&amp;nbsp; What step that I missed?&amp;nbsp; Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/504210_OutputParameters.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;# Model Environment settings&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;with&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;EnvManager&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;scratchWorkspace&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;"C:\ModelBuilder\Scratch\Output.gdb"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; workspace&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;"C:\ModelBuilder\Scratch\Output.gdb"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
 Output_gdb &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"C:\\ModelBuilder\\Scratch\\Output.gdb"&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# Process: Table To Excel (Table To Excel) (conversion)&lt;/SPAN&gt;
 arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;conversion&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;TableToExcel&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Input_Table&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;Parcels_Lots_DeleteIdentical&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; Output_Excel_File&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;ExcelFileName_xls&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; Use_field_alias_as_column_header&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"ALIAS"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; Use_domain_and_subtype_description&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"DESCRIPTION"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; __name__ &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'__main__'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
 SqftMapToExcelNewLoc&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;argv&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&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;&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:34:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-for-pro-how-to-set-file-path-parameter/m-p/437133#M34356</guid>
      <dc:creator>helenchu</dc:creator>
      <dc:date>2021-12-11T19:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: python for Pro: how to set File Path parameter</title>
      <link>https://community.esri.com/t5/python-questions/python-for-pro-how-to-set-file-path-parameter/m-p/437134#M34357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;where is argv defined?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2020 15:44:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-for-pro-how-to-set-file-path-parameter/m-p/437134#M34357</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-08-21T15:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: python for Pro: how to set File Path parameter</title>
      <link>https://community.esri.com/t5/python-questions/python-for-pro-how-to-set-file-path-parameter/m-p/437135#M34358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess&amp;nbsp;I didn't have it defined.&amp;nbsp; I'm not familiar with python so please excuse my stupid questions above.&amp;nbsp; I'll try to see if I can define the argv.&amp;nbsp; Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2020 17:36:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-for-pro-how-to-set-file-path-parameter/m-p/437135#M34358</guid>
      <dc:creator>helenchu</dc:creator>
      <dc:date>2020-08-21T17:36:32Z</dc:date>
    </item>
  </channel>
</rss>

