Top-rated recipes tagged "add"http://code.activestate.com/recipes/tags/add/top/2012-04-06T16:06:17-07:00ActiveState Code RecipesPost automatically on the python cookbook (Python) 2008-08-20T10:50:07-07:00bussiere bussierehttp://code.activestate.com/recipes/users/4050557/http://code.activestate.com/recipes/576439-post-automatically-on-the-python-cookbook/ <p style="color: grey"> Python recipe 576439 by <a href="/recipes/users/4050557/">bussiere bussiere</a> (<a href="/recipes/tags/add/">add</a>, <a href="/recipes/tags/automatically/">automatically</a>, <a href="/recipes/tags/cookbook/">cookbook</a>, <a href="/recipes/tags/form/">form</a>, <a href="/recipes/tags/post/">post</a>, <a href="/recipes/tags/recipe/">recipe</a>, <a href="/recipes/tags/tag/">tag</a>, <a href="/recipes/tags/tags/">tags</a>). Revision 3. </p> <p>hok to make a post by a little script it need httplib2 : <a href="http://code.google.com/p/httplib2/" rel="nofollow">http://code.google.com/p/httplib2/</a></p> Quickly add all dirs to sys.path if dir has .py file (Python) 2012-04-06T16:06:17-07:00Andrew Yurisichhttp://code.activestate.com/recipes/users/4180867/http://code.activestate.com/recipes/578097-quickly-add-all-dirs-to-syspath-if-dir-has-py-file/ <p style="color: grey"> Python recipe 578097 by <a href="/recipes/users/4180867/">Andrew Yurisich</a> (<a href="/recipes/tags/add/">add</a>, <a href="/recipes/tags/os_walk/">os_walk</a>, <a href="/recipes/tags/sys_path/">sys_path</a>). Revision 2. </p> <p>Add all dirs under <code>folder</code> to sys.path if any .py files are found. Use an abspath if you'd rather do it that way.</p> <p>Uses the current working directory as the location of using.py. Keep in mind that os.walk goes <em>all the way</em> down the directory tree.</p>