Re: [IronPython] atexit module doesn't work

2006-03-13 Thread Dino Viehland
:[EMAIL PROTECTED] On Behalf Of henry show Sent: Monday, March 13, 2006 1:09 AM To: Discussion of IronPython Subject: Re: [IronPython] atexit module doesn't work   I C, thx a lot. then i can repro your bug on my computer. and cPython did print a 'Bye' runing you

Re: [IronPython] atexit module doesn't work

2006-03-13 Thread henry show
I C, thx a lot. then i can repro your bug on my computer. and cPython did print a 'Bye' runing your piece of code.   btw:what's so special with site.py? why we have to replace the original one with a empty one for ironpython?   2006/3/13, Sanghyeon Seo <[EMAIL PROTECTED]>: 2006/3/13, henry show <[E

Re: [IronPython] atexit module doesn't work

2006-03-13 Thread Sanghyeon Seo
2006/3/13, henry show <[EMAIL PROTECTED]>: > i am new to ironpython, so my question might be silly: > why i can not even import os and atexit? You need to copy Lib directory from CPython 2.4 distribution. (And delete site.py after copying.) To import os module, you need os, ntpath or posixpath, s

Re: [IronPython] atexit module doesn't work

2006-03-13 Thread henry show
i am new to ironpython, so my question might be silly: why i can not even import os and atexit?   IronPython 1.0.2258 (Beta) on .NET 2.0.50727.42Copyright (c) Microsoft Corporation. All rights reserved.>>> import sys,atexitTraceback (most recent call last):  File , line 0, in input##74 ImportError:

[IronPython] atexit module doesn't work

2006-03-11 Thread Sanghyeon Seo
IronPython 1.0.2258 (Beta) on .NET 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights reserved. >>> import sys, atexit >>> def bye(): ... print 'Bye!' ... >>> atexit.register(bye) >>> sys.exit() This should print 'Bye!' at exit. Seo Sanghyeon