Message226696
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')) |
|
Date |
User |
Action |
Args |
2014-09-10 13:26:44 | webmaven | set | recipients:
+ webmaven, gotgenes, cjw296, mejo |
2014-09-10 13:26:44 | webmaven | set | messageid: <1410355604.22.0.783276506972.issue7744@psf.upfronthosting.co.za> |
2014-09-10 13:26:44 | webmaven | link | issue7744 messages |
2014-09-10 13:26:44 | webmaven | create | |
|