This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author webmaven
Recipients cjw296, gotgenes, mejo, webmaven
Date 2014-09-10.13:26:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1410355604.22.0.783276506972.issue7744@psf.upfronthosting.co.za>
In-reply-to
Content
And in case it isn't clear how such a method would help, here is what the earlier code would look like:

    import os
    import site
    
    dirname = 'lib'
    dirpath = os.path.join(os.path.dirname(__file__), dirname)

    site.insertsitedir(1, dirpath)

But (other than the imports) it could even be reduced to a one-liner:

    site.insertsitedir(1, os.path.join(os.path.dirname(__file__), 'lib'))
History
Date User Action Args
2014-09-10 13:26:44webmavensetrecipients: + webmaven, gotgenes, cjw296, mejo
2014-09-10 13:26:44webmavensetmessageid: <1410355604.22.0.783276506972.issue7744@psf.upfronthosting.co.za>
2014-09-10 13:26:44webmavenlinkissue7744 messages
2014-09-10 13:26:44webmavencreate