Re: supress creation of .pyc files

2005-02-16 Thread "Martin v. Löwis"
Thomas Guettler wrote: Is there a way to import a file without creating a .pyc file? That is part of PEP 304, which is not implemented yet, and apparently currently stalled due to lack of interest. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: supress creation of .pyc files

2005-02-16 Thread Ron Garret
In article <[EMAIL PROTECTED]>, Thomas Guettler <[EMAIL PROTECTED]> wrote: > Hi, > > Is there a way to import a file without creating > a .pyc file? > > Of course you can delete the pyc in my script after > the import statement, but maybe there is a switch > that I have not found yet. > > The

Re: supress creation of .pyc files

2005-02-16 Thread Jeremy Sanders
On Wed, 16 Feb 2005 14:53:22 +0100, Thomas Guettler wrote: > The imported file is a config file, not a script. You could use execfile() to read the file, and not import. Jeremy -- http://mail.python.org/mailman/listinfo/python-list

supress creation of .pyc files

2005-02-16 Thread Thomas Guettler
Hi, Is there a way to import a file without creating a .pyc file? Of course you can delete the pyc in my script after the import statement, but maybe there is a switch that I have not found yet. The imported file is a config file, not a script. Thomas -- Thomas Güttler, http://www.thomas-gue