:[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
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
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
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 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