<?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: Does anyone have a good file system hierarchy for their python scripts? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/does-anyone-have-a-good-file-system-hierarchy-for/m-p/232633#M18024</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We simply use Windows task scheduler pointing to individual .cmd/.bat files that execute .py scripts.&amp;nbsp; Aside from managing dev/test/prod versions, it's pretty straight forward.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Feb 2016 21:47:33 GMT</pubDate>
    <dc:creator>JamesCrandall</dc:creator>
    <dc:date>2016-02-17T21:47:33Z</dc:date>
    <item>
      <title>Does anyone have a good file system hierarchy for their python scripts?</title>
      <link>https://community.esri.com/t5/python-questions/does-anyone-have-a-good-file-system-hierarchy-for/m-p/232624#M18015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have several years of scripts I've written for various projects. I keep them mostly as examples of how to do something so I don't have to figure it out again. I also have scripts i use on a regular basis. Does anyone have a system that they are willing to share on how to store your scripts? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 17:09:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/does-anyone-have-a-good-file-system-hierarchy-for/m-p/232624#M18015</guid>
      <dc:creator>WesMiller</dc:creator>
      <dc:date>2016-02-11T17:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone have a good file system hierarchy for their python scripts?</title>
      <link>https://community.esri.com/t5/python-questions/does-anyone-have-a-good-file-system-hierarchy-for/m-p/232625#M18016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My method&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I make a separate file for all def's as a standalone file ( ie azimuth_py.py, azimuth_np.py) for python and in most cases numpy.&lt;UL&gt;&lt;LI&gt;rationale 1 ... if I just need a function, I can find it without having to remember the module that it may be in (for example, line_helpers_py.py, line_helpers_np.py)&lt;/LI&gt;&lt;LI&gt;rationale 2 ... a function may be used in several helper modules, and this removes the need to import a piece here and there and the function is already in standalone mode&lt;/LI&gt;&lt;LI&gt;for the above, I keep extensive documentation as to what is where, so if I change a module slightly, I may or may not make the changes in the helper modules.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;I package def's into helper modules (ie arcpy_py_helper.py, arcpy_np_helper.py (abbrev ANH.py) which contain the helper scripts I need.&lt;/LI&gt;&lt;LI&gt;If I am working on a project, I copy and rename the helper modules to match the project I am working on so I can make changes there without impacting the originals (ie GeomProj_ANH.py which is the arcpy_np_helper.py module used exclusively for the Geometry Project)&lt;/LI&gt;&lt;LI&gt;I back everything up... yes laugh... until you reinvent code for the 3rd time because you haven't followed along so far&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;That's all I can think of now&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 17:28:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/does-anyone-have-a-good-file-system-hierarchy-for/m-p/232625#M18016</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-02-11T17:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone have a good file system hierarchy for their python scripts?</title>
      <link>https://community.esri.com/t5/python-questions/does-anyone-have-a-good-file-system-hierarchy-for/m-p/232626#M18017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here are some things that work well for us:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Use subversion control.&amp;nbsp; We have 7 gis programmer/analysts and this is the allows us to track changes over time and make updates locally without affecting others.&amp;nbsp; We use our own internal subversion, but github would work as well. &lt;/LI&gt;&lt;LI&gt;Within our subversion repository, we maintain 5 types of python code:&lt;UL&gt;&lt;LI&gt;general functions and classes that can be used by other script and toolboxes.&amp;nbsp; We add the path to this folder to our 'path' environmental variable so we can import modules from it without jumping through too many hoops&lt;/LI&gt;&lt;LI&gt;Scripts.&amp;nbsp; These are just stand alone python scripts that might be for one time use or a work in progress&lt;/LI&gt;&lt;LI&gt;Python toolboxes: We build most of our data manager and user tools into 'pyt' files so they can be run using the ArcGIS interface. &lt;/LI&gt;&lt;LI&gt;Geoprocessing services:&amp;nbsp; we store the source code for publish geoprocessing services here&lt;/LI&gt;&lt;LI&gt;Automated tasks: scripts that are scheduled to run on a nightly or weekly basis&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Code development generally occurs in standalone scripts or toolboxes.&amp;nbsp; When we see an opportunity to capitalize on a function or a tool we've developed, we move it into one of the classes in the general functions folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Been working great for us! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 18:29:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/does-anyone-have-a-good-file-system-hierarchy-for/m-p/232626#M18017</guid>
      <dc:creator>BillDaigle</dc:creator>
      <dc:date>2016-02-11T18:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone have a good file system hierarchy for their python scripts?</title>
      <link>https://community.esri.com/t5/python-questions/does-anyone-have-a-good-file-system-hierarchy-for/m-p/232627#M18018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're looking for a place where you can dump your code snippets, or classes, etc. where the code you are keeping is piecemeal? And not part of a larger package? Then I recommend Evernote. If you use it with PortoCode formatter then you get a nice note that you can add to at anytime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example Snippet&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.evernote.com/l/AAXZTkmP6pFGzJlQgIJ7gABn_9NcFdz9YQs/" title="http://www.evernote.com/l/AAXZTkmP6pFGzJlQgIJ7gABn_9NcFdz9YQs/"&gt;http://www.evernote.com/l/AAXZTkmP6pFGzJlQgIJ7gABn_9NcFdz9YQs/&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PortoCode Formatter&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://portocode.viovie.co/" title="http://portocode.viovie.co/"&gt;PortoCode - Portable Codes With Syntax Highlighting On EVERNOTE&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once it's in Evernote then you can search keywords or if you take the time to tag it you get even greater control over accessing the pertinent information at a later date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 18:45:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/does-anyone-have-a-good-file-system-hierarchy-for/m-p/232627#M18018</guid>
      <dc:creator>BrianO_keefe</dc:creator>
      <dc:date>2016-02-11T18:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone have a good file system hierarchy for their python scripts?</title>
      <link>https://community.esri.com/t5/python-questions/does-anyone-have-a-good-file-system-hierarchy-for/m-p/232628#M18019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TortoiseSVN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We just keep it project-based, much like any other application and components might exist in SVN. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 19:23:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/does-anyone-have-a-good-file-system-hierarchy-for/m-p/232628#M18019</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2016-02-11T19:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone have a good file system hierarchy for their python scripts?</title>
      <link>https://community.esri.com/t5/python-questions/does-anyone-have-a-good-file-system-hierarchy-for/m-p/232629#M18020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll second &lt;A href="https://tortoisesvn.net/"&gt;TortoiseSVN&lt;/A&gt;. It's nice because it's free, even for corporate use (open source).&lt;/P&gt;&lt;P&gt;They even have like a tutorial or how-to-use part of their site that helps you get started:&lt;/P&gt;&lt;P&gt;&lt;A href="https://tortoisesvn.net/docs/nightly/TortoiseSVN_en/" title="https://tortoisesvn.net/docs/nightly/TortoiseSVN_en/"&gt;https://tortoisesvn.net/docs/nightly/TortoiseSVN_en/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There are also videos and such on YouTube, like: &lt;A href="https://www.youtube.com/watch?v=c6nRoQt3wMc" title="https://www.youtube.com/watch?v=c6nRoQt3wMc"&gt;Tortoise SVN Tutorial - YouTube&lt;/A&gt;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 23:00:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/does-anyone-have-a-good-file-system-hierarchy-for/m-p/232629#M18020</guid>
      <dc:creator>AdrianWelsh</dc:creator>
      <dc:date>2016-02-11T23:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone have a good file system hierarchy for their python scripts?</title>
      <link>https://community.esri.com/t5/python-questions/does-anyone-have-a-good-file-system-hierarchy-for/m-p/232630#M18021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you everyone for your valuable input!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 14:43:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/does-anyone-have-a-good-file-system-hierarchy-for/m-p/232630#M18021</guid>
      <dc:creator>WesMiller</dc:creator>
      <dc:date>2016-02-16T14:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone have a good file system hierarchy for their python scripts?</title>
      <link>https://community.esri.com/t5/python-questions/does-anyone-have-a-good-file-system-hierarchy-for/m-p/232631#M18022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been using Eclipse\PyDev for the last five years and have decided to up my game. I'm currently setting up Python Virtualenv and GitHub to manage my Python Code. I've attached a print screen of my Eclipse\PyDev structure. This allows me to run any of my Python or ArcPy scripts outside of ArcGIS as well as schedule my scripts to run at any given time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 20:38:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/does-anyone-have-a-good-file-system-hierarchy-for/m-p/232631#M18022</guid>
      <dc:creator>PeterWilson</dc:creator>
      <dc:date>2016-02-17T20:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone have a good file system hierarchy for their python scripts?</title>
      <link>https://community.esri.com/t5/python-questions/does-anyone-have-a-good-file-system-hierarchy-for/m-p/232632#M18023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter,&lt;/P&gt;&lt;P&gt;Can you elaborate on how this helps you schedule scripts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/159274"&gt;Adam Messer&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 20:45:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/does-anyone-have-a-good-file-system-hierarchy-for/m-p/232632#M18023</guid>
      <dc:creator>BillDaigle</dc:creator>
      <dc:date>2016-02-17T20:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone have a good file system hierarchy for their python scripts?</title>
      <link>https://community.esri.com/t5/python-questions/does-anyone-have-a-good-file-system-hierarchy-for/m-p/232633#M18024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We simply use Windows task scheduler pointing to individual .cmd/.bat files that execute .py scripts.&amp;nbsp; Aside from managing dev/test/prod versions, it's pretty straight forward.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 21:47:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/does-anyone-have-a-good-file-system-hierarchy-for/m-p/232633#M18024</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2016-02-17T21:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone have a good file system hierarchy for their python scripts?</title>
      <link>https://community.esri.com/t5/python-questions/does-anyone-have-a-good-file-system-hierarchy-for/m-p/232634#M18025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bill&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following article might help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.esri.com/esri/arcgis/2013/07/30/scheduling-a-scrip/"&gt;Scheduling a Python script.&lt;/A&gt;​&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 22:34:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/does-anyone-have-a-good-file-system-hierarchy-for/m-p/232634#M18025</guid>
      <dc:creator>PeterWilson</dc:creator>
      <dc:date>2016-02-17T22:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone have a good file system hierarchy for their python scripts?</title>
      <link>https://community.esri.com/t5/python-questions/does-anyone-have-a-good-file-system-hierarchy-for/m-p/232635#M18026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We already use window's task scheduler.&amp;nbsp; It works OK, but is a pain whenever I leave the office and take my computer with me.&amp;nbsp; We end up manually setting up the tasks on another user's computer temporarily, then disabling them when I get back in the office.&amp;nbsp; Long term, I think we're better off running the tasks on a server instead of my desktop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not used virtualenv, so I was curious if this was giving you more flexibility when implementing scheduled tasks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 23:13:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/does-anyone-have-a-good-file-system-hierarchy-for/m-p/232635#M18026</guid>
      <dc:creator>BillDaigle</dc:creator>
      <dc:date>2016-02-17T23:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone have a good file system hierarchy for their python scripts?</title>
      <link>https://community.esri.com/t5/python-questions/does-anyone-have-a-good-file-system-hierarchy-for/m-p/232636#M18027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The server is where i run my scripts with task scheduler. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 23:33:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/does-anyone-have-a-good-file-system-hierarchy-for/m-p/232636#M18027</guid>
      <dc:creator>WesMiller</dc:creator>
      <dc:date>2016-02-17T23:33:59Z</dc:date>
    </item>
  </channel>
</rss>

