|
Re: Re: Simple but fundamental: How to import a jython class?: msg#00026lang.jython.user
If you want use the class X write this: from x import * (x if yor archive is x.py and X if your archive is X.py) now the program y.py look's somting like this: from x import * a = X() a.hello() another form to use your library: import x (x if yor archive is x.py and X if your archive is X.py) a=x.X() a.hello() Aziz Hammadi <aziz.hammadi@xxxxxxxxx> escribió: I wrote a jython class bus I can not use it in another jython script :-(
Do You Yahoo!? La mejor conexión a Internet y 2GB extra a tu correo por $100 al mes. http://net.yahoo.com.mx
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Re: Simple but fundamental: How to import a jython class?, Kent Johnson |
|---|---|
| Next by Date: | Evals from Java, Jake Eakle |
| Previous by Thread: | Re: Re: Simple but fundamental: How to import a jython class?, Kent Johnson |
| Next by Thread: | Re: Re: Simple but fundamental: How to import a jython class?, Kent Johnson |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |