Message4973

Author dhandy
Recipients dhandy
Date 2009-07-31.19:17:32
SpamBayes Score 0.00031353201
Marked as misclassified No
Message-id <1249067853.27.0.67985111095.issue1418@psf.upfronthosting.co.za>
In-reply-to
Content
Test program:

if __name__ == '__main__':
    print "Hello from __run__.py"
else:
    print "__main__ not defined when __run__.py is executed"

I put this __run__.py file into the root of the stand-alone jython.jar

Command line:

java -jar jython.jar -jar jython.jar

Printed result:

__main__ not defined when __run__.py is executed

This is not what is expected of a main program's startup script, and
has resulted in at least one confused email to the jython mailing
list asking why their startup script wouldn't run.
History
Date User Action Args
2009-07-31 19:17:33dhandysetrecipients: + dhandy
2009-07-31 19:17:33dhandysetmessageid: <1249067853.27.0.67985111095.issue1418@psf.upfronthosting.co.za>
2009-07-31 19:17:33dhandylinkissue1418 messages
2009-07-31 19:17:32dhandycreate