ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> Jython-users
Jython-users
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved