<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Advice on script organization]]></title><description><![CDATA[<p dir="auto">I'm looking for tips on how to best organize different versions and iterations of various <code>main.py</code> and <code>boot.py</code> scripts. After working with the WiPy for several months I have amassed many different scripts but want to keep them usable. Any good advice on naming and/or calling different scripts?</p>
]]></description><link>https://forum.pycom.io/topic/4027/advice-on-script-organization</link><generator>RSS for Node</generator><lastBuildDate>Wed, 17 Jun 2026 17:06:16 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/4027.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 23 Nov 2018 23:30:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Advice on script organization on Fri, 23 Nov 2018 23:30:11 GMT]]></title><description><![CDATA[<p dir="auto">I'm looking for tips on how to best organize different versions and iterations of various <code>main.py</code> and <code>boot.py</code> scripts. After working with the WiPy for several months I have amassed many different scripts but want to keep them usable. Any good advice on naming and/or calling different scripts?</p>
]]></description><link>https://forum.pycom.io/post/23707</link><guid isPermaLink="true">https://forum.pycom.io/post/23707</guid><dc:creator><![CDATA[alexpul]]></dc:creator><pubDate>Fri, 23 Nov 2018 23:30:11 GMT</pubDate></item><item><title><![CDATA[Reply to Advice on script organization on Sat, 24 Nov 2018 07:35:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/3114">@alexpul</a> What I do<br />
a) I do not change <a href="http://boot.py" target="_blank" rel="noopener noreferrer nofollow">boot.py</a> a lot. I have only command related to the general operating mode in there, like USB REPL enabled or WiFi access, although the latter may vary<br />
b) I do not code for specific things in <a href="http://main.py" target="_blank" rel="noopener noreferrer nofollow">main.py</a>. Instead if put that into files with appropriate names and import them in <a href="http://main.py" target="_blank" rel="noopener noreferrer nofollow">main.py</a>. If one application consists of several files, I put them in a subdirectory and either uos.chdir() into that, or alin sys.path to include that subdirectory, such that import can find the files.</p>
]]></description><link>https://forum.pycom.io/post/23709</link><guid isPermaLink="true">https://forum.pycom.io/post/23709</guid><dc:creator><![CDATA[robert-hh]]></dc:creator><pubDate>Sat, 24 Nov 2018 07:35:44 GMT</pubDate></item></channel></rss>