From: Utkarsh U. <mus...@gm...> - 2007-08-01 14:40:18
|
On 8/1/07, wer...@gm... <wer...@gm...> wrote: > > Dear all, > > I am not sure if the following is a trivial problem or not; thanks a lot > for pointers in the right direction: > > I want to write a package in Jython, containing some helper classes and > functions (class_foo.py class__1_foo.py ...) and finally a program > program_foo.py importing and using the aforementioned classes. > > I want to start program_foo.py from another jython program, say main.py. > - How can I run the file program_foo.py from main.py? import program_foo.py should be able to do it. - Will program_foo.py then find the import files in the same package or do I > have to set additional environment variables? Should work out of the box. Though you may need to use hierarchy just as in Java, like org/cache/ ... will convert to org.cache. ... ,e etc. Maybe slightly off-topic: It would possibly also help if I could run a > start.bat from jython. Is there a way to do that? import os os.system("start.bat") Should do. HTH, musically_ut. Thanks a lot for your support. > > Kind regards > > Markus > -- > GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS. > Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > -- Never trust a spiritual leader who cannot dance. ~Mr. Miyagi, The Next Karate Kid |