|
Re: [Jython-users] Import hooks available?
From: Leo User <leouser126@ya...> - 2007-03-21 15:09
|
I used the metapath but there is the path_hooks variable as well in PySystemState. From looking at imp it might work as well. leouser --- "Travis B. Hartwell" <nafai@...> wrote: > Diez, > On Wed, Mar 21, 2007 at 03:54:32PM +0100, Diez B. > Roggisch wrote: > > Hi all, > > > > I'm on my way rewriting a so-far jythonc-dependend > class that runs inside a > > J2EE container. I want to get rid of the > compilation step, as it complicates > > our build-process. > > > > But becauso of the J2EE-container environment, I > don't have a directory > > containing my .py-files for easy import. > > > > So I was thinking of using getResourceAsStream > from Java classloaders via an > > import-hook mechanism. > > > > Unfortunately, I'm not sure if such a thing really > exists. Googling didn't > > reveal anything enlightening, so maybe someone > here can help me out? > > I wrote something very similar just recently here at > work. I'm > intending on writing a little how-to on how to do > so. I might take a > minute this afternoon and jot down a few notes on > what I did and send it > to the list. > > Sorry I don't have time to help at the moment, but > I'll share later. > > Travis > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get > the chance to share your > opinions on IT & business topics through brief > surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Jython-users mailing list > Jython-users@... > https://lists.sourceforge.net/lists/listinfo/jython-users > ____________________________________________________________________________________ Food fight? Enjoy some healthy debate in the Yahoo! Answers Food & Drink Q&A. http://answers.yahoo.com/dir/?link=list&sid=396545367 |
| Thread | Author | Date | |
|---|---|---|---|
| [Jython-users] Import hooks available? | Diez B. Roggisch <deets@we...> |
|
|
|