<?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 Help! Scratch Workspace not setting for Scratch GDB in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/help-scratch-workspace-not-setting-for-scratch-gdb/m-p/165280#M12704</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need to define my scratch workspace, but python is not taking the input. Here is what I have:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;# Setup Working Environment
path = "D:\\gis\\Data\\"
arcpy.env.scratchworkspace = path
print "Scratch workspace set to " + env.scratchGDB + "\n"&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This should set the scratchGDB to &lt;/SPAN&gt;&lt;STRONG&gt;d:\gis\Data\scratch.gdb&lt;/STRONG&gt;&lt;SPAN&gt;. However it still sets it to &lt;/SPAN&gt;&lt;STRONG&gt;C:\Users\tdmc0\AppData\Local\Temp\2\scratch.gdb&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I cannot have the scratch GDB inside of my temp users directory as it changes daily and this is part of an automated process that has layers in a map document pointing to layers inside my scratch GDB. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why can I not set my scratch workspace? I have followed all of the guidelines in the ArcGIS documentation. Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Feb 2014 15:08:26 GMT</pubDate>
    <dc:creator>MarcCusumano</dc:creator>
    <dc:date>2014-02-18T15:08:26Z</dc:date>
    <item>
      <title>Help! Scratch Workspace not setting for Scratch GDB</title>
      <link>https://community.esri.com/t5/python-questions/help-scratch-workspace-not-setting-for-scratch-gdb/m-p/165280#M12704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need to define my scratch workspace, but python is not taking the input. Here is what I have:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;# Setup Working Environment
path = "D:\\gis\\Data\\"
arcpy.env.scratchworkspace = path
print "Scratch workspace set to " + env.scratchGDB + "\n"&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This should set the scratchGDB to &lt;/SPAN&gt;&lt;STRONG&gt;d:\gis\Data\scratch.gdb&lt;/STRONG&gt;&lt;SPAN&gt;. However it still sets it to &lt;/SPAN&gt;&lt;STRONG&gt;C:\Users\tdmc0\AppData\Local\Temp\2\scratch.gdb&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I cannot have the scratch GDB inside of my temp users directory as it changes daily and this is part of an automated process that has layers in a map document pointing to layers inside my scratch GDB. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why can I not set my scratch workspace? I have followed all of the guidelines in the ArcGIS documentation. Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 15:08:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/help-scratch-workspace-not-setting-for-scratch-gdb/m-p/165280#M12704</guid>
      <dc:creator>MarcCusumano</dc:creator>
      <dc:date>2014-02-18T15:08:26Z</dc:date>
    </item>
  </channel>
</rss>

