A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/attachments/20100407/5e5b26ca/attachment.html below:

On Wed, Apr 7, 2010 at 9:40 AM, Tarek Ziadé <span dir="ltr">&lt;<a href="mailto:ziade.tarek@gmail.com">ziade.tarek@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">so for the PEP :</div>


<br>
- sys.prefix -&gt; the installation prefix provided by --prefix at<br>
installation time<br>
- site-packages -&gt; the installation libdir, provided by --install-lib<br>
at installation time</blockquote></div><div><br></div><div>How do you actually calculate site-packages? Â Would you store the directory name somewhere? Â Would you import the module and look at os.path.dirname(os.path.dirname(module.__file__))? Â Or just scan to see where the module would be?</div>

<div><br></div><div>If you store the directory name somewhere then you have another absolute path. Â This is why, for simplicity, I thought it should be relative to the directory where the record file is (lots of extraneous ../, but the most obvious meaning of a relative filename).</div>

<br>-- <br>Ian Bicking Â | Â <a href="http://blog.ianbicking.org">http://blog.ianbicking.org</a><br>



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4