Message8429

Author zyasoft
Recipients zyasoft
Date 2014-05-17.20:22:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1400358131.37.0.325882430244.issue2149@psf.upfronthosting.co.za>
In-reply-to
Content
Standalone mode in Jython is restricted to only classes bundled in Lib/. For purposes of working with Clamp, it would be ideal if pth files (as supported by site.py) was supported, along with Lib/site-packages

The first part of this solution can modify site.addpackage such that it attempts to open, then process, pth files if available by using ClassLoader.getResourceAsStream. Such FileInputStreams can be given to the open function; the class loader should likely be Thread.currentThread().getContextClassLoader()
History
Date User Action Args
2014-05-17 20:22:11zyasoftsetrecipients: + zyasoft
2014-05-17 20:22:11zyasoftsetmessageid: <1400358131.37.0.325882430244.issue2149@psf.upfronthosting.co.za>
2014-05-17 20:22:11zyasoftlinkissue2149 messages
2014-05-17 20:22:11zyasoftcreate