<?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: Copytree Question in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/copytree-question/m-p/404814#M31880</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Joshua, I'll look into absolute pathing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from my iPhone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Oct 2016 14:11:06 GMT</pubDate>
    <dc:creator>ChrisHolmes</dc:creator>
    <dc:date>2016-10-18T14:11:06Z</dc:date>
    <item>
      <title>Copytree Question</title>
      <link>https://community.esri.com/t5/python-questions/copytree-question/m-p/404812#M31878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a python script that:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;creates a new folder using user input for part of the folder name&lt;/LI&gt;&lt;LI&gt;copies 6 files plus one file geodatabase into the folder&lt;/LI&gt;&lt;LI&gt;then opens up one of the mxd files&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The following layers in the source file geodatabase have the following database locations:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;layer: transnet_centerline_for_labeling:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/247263_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;layer: bridge_polygons:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/247264_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the python script I use copytree to copy the file geodatabase to the destination location:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/247283_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Somehow the database location for these&amp;nbsp;2 layers is being changed in the file geodatabase when it is in the new location. For example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;layer: transnet_centerline_for_labeling:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" src="https://community.esri.com/legacyfs/online/247284_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;layer: bridge_polygons:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;IMG class="image-5 jive-image" src="https://community.esri.com/legacyfs/online/247285_pastedImage_5.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course H:\geo_databases does not exist, so the layers display with&amp;nbsp;red exclamation marks:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-6 jive-image" src="https://community.esri.com/legacyfs/online/247289_pastedImage_6.png" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody have any idea why this path may be changing to a folder that doesn't exist. Is there something in how the database source path is defined that the layer is looking to what ever drive it happens to be mapped to? Although it's not just a difference of the drive letter, the change is from X:\GIS\geo_databases to H:\geo_databases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 13:38:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/copytree-question/m-p/404812#M31878</guid>
      <dc:creator>ChrisHolmes</dc:creator>
      <dc:date>2016-10-18T13:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Copytree Question</title>
      <link>https://community.esri.com/t5/python-questions/copytree-question/m-p/404813#M31879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will have to come back to this later, but it appears you have some layers with relative paths.&amp;nbsp; When the MXD gets copied to a new location, it is deriving a new path based on a relative path that was stored in the layer, but the new path doesn't exist.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 14:06:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/copytree-question/m-p/404813#M31879</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2016-10-18T14:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Copytree Question</title>
      <link>https://community.esri.com/t5/python-questions/copytree-question/m-p/404814#M31880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Joshua, I'll look into absolute pathing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from my iPhone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 14:11:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/copytree-question/m-p/404814#M31880</guid>
      <dc:creator>ChrisHolmes</dc:creator>
      <dc:date>2016-10-18T14:11:06Z</dc:date>
    </item>
  </channel>
</rss>

