##// END OF EJS Templates
Small fix to respect the __file__ attribute when using %run
fperez -
Show More
@@ -5,7 +5,7 b' Class which mimics a module.'
5 Needed to allow pickle to correctly resolve namespaces during IPython
5 Needed to allow pickle to correctly resolve namespaces during IPython
6 sessions.
6 sessions.
7
7
8 $Id: FakeModule.py 1625 2006-08-12 10:34:44Z vivainio $"""
8 $Id: FakeModule.py 2169 2007-03-23 06:09:43Z fperez $"""
9
9
10 #*****************************************************************************
10 #*****************************************************************************
11 # Copyright (C) 2002-2004 Fernando Perez. <fperez@colorado.edu>
11 # Copyright (C) 2002-2004 Fernando Perez. <fperez@colorado.edu>
@@ -36,7 +36,7 b' class FakeModule:'
36 self.__dict__ = adict
36 self.__dict__ = adict
37
37
38 # modules should have a __file__ attribute
38 # modules should have a __file__ attribute
39 adict['__file__'] = __file__
39 adict.setdefault('__file__',__file__)
40
40
41 def __getattr__(self,key):
41 def __getattr__(self,key):
42 try:
42 try:
@@ -1,3 +1,9 b''
1 2007-03-23 Fernando Perez <Fernando.Perez@colorado.edu>
2
3 * IPython/FakeModule.py (FakeModule.__init__): Small fix to
4 respect the __file__ attribute when using %run. Thanks to a bug
5 report by Sebastian Rooks <sebastian.rooks-AT-free.fr>.
6
1 2007-03-22 Fernando Perez <Fernando.Perez@colorado.edu>
7 2007-03-22 Fernando Perez <Fernando.Perez@colorado.edu>
2
8
3 * IPython/iplib.py (raw_input): Fix mishandling of unicode at
9 * IPython/iplib.py (raw_input): Fix mishandling of unicode at
General Comments 0
You need to be logged in to leave comments. Login now