From: David H. <Dav...@sa...> - 2007-08-01 15:15:29
|
If you repeat the command: import program_foo nothing will happen. You have to do this: reload(program_foo) to re-import a module whose source file has changed. But this won't = re-load any other module that program_foo.py imported, so if those files = changed you still have a problem. Maybe your other idea of running a start.bat file from main.py is a = better idea. David H=20 -----Original Message----- From: jyt...@li... = [mailto:jyt...@li...] On Behalf Of = wer...@gm... Sent: Wednesday, August 01, 2007 11:03 AM To: Utkarsh Upadhyay Cc: jyt...@li... Subject: Re: [Jython-users] How to run a .py file from Jython Thank you for your reply.=20 Sorry, I must give some more background information. Let's say main.py = is a basic editor; I edit program_foo.py in main.py and want to start it = from main after editing. If I repeat the import statment after editing; = will the edited version be reimported and executed? >=20 >=20 > import program_foo.py >=20 > should be able to do it. >=20 Thanks again Markus -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!=20 Ideal f=FCr Modem und ISDN: http://www.gmx.net/de/go/smartsurfer -------------------------------------------------------------------------= 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 |