Re: [Jython-users] [NOOB] importing python stuff stored elsewhere...
by ivo other posts by this author
Nov 23 2004 7:29PM messages near this date
Re: [Jython-users] Is there any getpass equivalent in Jython
|
[Jython-users] Re: Epydoc: kludge-ability for Jython
Hello;
"Robert Bill's Jython for Java Programmers" - i'll give a try ...
:)
Ivo
>
> Hello Ivo,
>
> When posting questions, especially simple stuff like this, you should
> include the code and exact error messages. If you're just getting
> started with Jython, you should invest in a good book that has some
> examples. The time you save is worth the money, even for a staving
> student. I like Robert Bill's Jython for Java Programmers.
>
> One gotcha on packages is that all the directories in your package
> paths (p1, p2) need an __init__.py file. The file can be empty; it
> just needs to exist.
>
> Cheers,
> Todd Moyer
>
>
> ivo wrote:
>
> > hello;
> >
> > i'm new to this jython/python stuff but I begin to like it :)
> > When i want to use some special java-classes like jdbc-drivers it's
> > clear that they must exist in CLASSPATH; but what if i want to create
> > some
> > reusable or designed-for-extension python classes/fragments and store
> > them in a separate "package/modue", how do i set that up?
> >
> > exp:
> >
> > /home/foo/p1/DbManager.py
> > /home/foo/p2/DbTester.py
> >
> > the DbManger.py declares a class named DbManager
> > the DbTester tries to invoke it.
> >
> > now in the DbTester, how can i get access to the DbManager that is
> > stored in a different location? no matter how i try, i always get some
> > import errors;
> >
> > Thanks for any help and Regards...
> >
> >
> > Ivo
> >
> >
> >
> > -------------------------------------------------------
> > SF email is sponsored by - The IT Product Guide
> > Read honest & candid reviews on hundreds of IT Products from real users.
> > Discover which products truly live up to the hype. Start reading now.
> > http://productguide.itmanagersjournal.com/
> > _______________________________________________
> > Jython-users mailing list
> > Jython-users@[...].net
> > https://lists.sourceforge.net/lists/listinfo/jython-users
>
>
>
>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Jython-users mailing list
Jython-users@[...].net
https://lists.sourceforge.net/lists/listinfo/jython-users
|