Re: iPython executes org.py in directory
Thomas Kluyver <[email protected]> Fri, 20 May 2016 12:08:46 +0100
| Newsgroups | gmane.comp.python.ipython.user |
|---|---|
| Message-ID | <CAOvn4qgc-gJsiUZPHCPfUN+tmy+QTNAKR3AbueH_HBZv37FT7g@mail.gmail.com> |
--===============9052641831130431243== Content-Type: multipart/alternative; boundary=001a114fa4ba1acf0c0533441fbb --001a114fa4ba1acf0c0533441fbb Content-Type: text/plain; charset=UTF-8 On 20 May 2016 at 11:59, Florian Lindner <[email protected]> wrote: > I have a file named org.py in the current working directory. Whenever I > start ipython 4.2.0, it executes this file: > > florian@asaru ~/scratch/calorg (git)-[master] % ipython > [ org.py output ] > I would guess something is doing 'import org'. I can't find that anywhere in our code, but it might be in a dependency, an extension, or a startup file. If you put 'raise Exception' in your org.py file, you should get a traceback that indicates what is loading it. Thomas --001a114fa4ba1acf0c0533441fbb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On 2= 0 May 2016 at 11:59, Florian Lindner <span dir=3D"ltr"><<a href=3D"mailt= o:[email protected]" target=3D"_blank">[email protected]</a>></span>= wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bor= der-left:1px #ccc solid;padding-left:1ex"><div id=3D":2uw" class=3D"a3s aXj= CH m154cdd1c0fd37d68">I have a file named org.py in the current working dir= ectory. Whenever I start ipython 4.2.0, it executes this file:<br> <br> florian@asaru ~/scratch/calorg (git)-[master] % ipython<br> [ org.py output ]</div></blockquote></div><br></div><div class=3D"gmail_ext= ra">I would guess something is doing 'import org'. I can't find= that anywhere in our code, but it might be in a dependency, an extension, = or a startup file.<br><br></div><div class=3D"gmail_extra">If you put '= raise Exception' in your org.py file, you should get a traceback that i= ndicates what is loading it.<br><br></div><div class=3D"gmail_extra">Thomas= <br></div></div> --001a114fa4ba1acf0c0533441fbb-- --===============9052641831130431243== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ IPython-User mailing list [email protected] https://mail.scipy.org/mailman/listinfo/ipython-user --===============9052641831130431243==--