Re: how to get rid of pyc files ?

2009-06-04 Thread Gabriel Genellina
[please keep the discussion on the list] may be python need a parameter to regenerate .pyo/pyc explicit ,not depending on magic number and modification time. but i just wander if you simply just clear all .pyc than generate in one system manually, can than program run without error in another

Re: how to get rid of pyc files ?

2009-05-26 Thread Gabriel Genellina
En Mon, 25 May 2009 17:00:00 -0300, pythoncuri...@gmail.com escribió: On May 25, 12:08 am, Dave Angel da...@ieee.org wrote: Somebody else has already pointed out that you can tell Python not to create thosefiles(during your development stages). Yes, that's probably the best way to sort out

Re: how to get rid of pyc files ?

2009-05-25 Thread pythoncurious
On May 25, 12:08 am, Dave Angel da...@ieee.org wrote: Is Clearcase still around?  I hope it works better than it did in 1992. I don't know how it worked back then, but if it's worse than today, I don't know how they ever managed to get people to use it. I'm not a fan and I don't have a choice

Re: how to get rid of pyc files ?

2009-05-25 Thread pythoncurious
On May 25, 12:07 am, John Machin sjmac...@lexicon.net wrote: switching scarcely seems to be the right description. You appear to be running the same code from one repository simultaneously available to two different platforms. Try this: Instead of running your code straight from your

Re: how to get rid of pyc files ?

2009-05-25 Thread John Machin
On May 26, 6:04 am, pythoncuri...@gmail.com wrote: On May 25, 12:07 am, John Machin sjmac...@lexicon.net wrote: switching scarcely seems to be the right description. You appear to be running the same code from one repository simultaneously available to two different platforms. Try this:

how to get rid of pyc files ?

2009-05-24 Thread Stef Mientki
hello, Moving my entire program section between windows and Ubuntu, sometimes causes problems, due to the existence of pyc-files (and probably because my program still has hard coded paths). Now I want get rid of the pyc-files, so I wrote a py-script to remoce all pyc-files, but because it's

Re: how to get rid of pyc files ?

2009-05-24 Thread Mike Kazantsev
On Sun, 24 May 2009 15:01:51 +0200 Stef Mientki stef.mien...@gmail.com wrote: Moving my entire program section between windows and Ubuntu, sometimes causes problems, due to the existence of pyc-files (and probably because my program still has hard coded paths). Now I want get rid of the

Re: how to get rid of pyc files ?

2009-05-24 Thread Esmail
Stef Mientki wrote: btw, What commandline switches are available for python ? (googling didn't give me any relevant hits ) Hi Stef, This is what I get w/ v2.6 under Ubuntu 9.04 9:12 esm...@t61 ~/Python [510] python -h usage: python [option] ... [-c cmd | -m mod | file | -] [arg] ...

Re: how to get rid of pyc files ?

2009-05-24 Thread John Machin
On May 24, 11:01 pm, Stef Mientki stef.mien...@gmail.com wrote: hello, Moving my entire program section between windows and Ubuntu, sometimes causes problems, due to the existence of pyc-files What problems? Like avoiding having to recompile your .py files makes your app run too fast? (and

Re: how to get rid of pyc files ?

2009-05-24 Thread pythoncurious
On May 24, 3:58 pm, John Machin sjmac...@lexicon.net wrote: What problems? Like avoiding having to recompile your .py files makes your app run too fast? There are real problems with this. I'm having similar problems when switching between Solaris and Windows. The code is in clearcase, which

Re: Re: how to get rid of pyc files ?

2009-05-24 Thread Dave Angel
pythoncuri...@gmail.com wrote: On May 24, 3:58 pm, John Machin sjmac...@lexicon.net wrote: What problems? Like avoiding having to recompile your .py files makes your app run too fast? There are real problems with this. I'm having similar problems when switching between Solaris and

Re: how to get rid of pyc files ?

2009-05-24 Thread John Machin
On May 25, 3:09 am, pythoncuri...@gmail.com wrote: On May 24, 3:58 pm, John Machin sjmac...@lexicon.net wrote: What problems? Like avoiding having to recompile your .py files makes your app run too fast? There are real problems with this. I'm having similar problems when switching

Re: how to get rid of pyc files ?

2009-05-24 Thread JKPeck
On May 24, 4:08 pm, Dave Angel da...@ieee.org wrote: pythoncuri...@gmail.com wrote: On May 24, 3:58 pm, John Machin sjmac...@lexicon.net wrote: What problems? Like avoiding having to recompile your .py files makes your app run too fast? There are real problems with this. I'm having

Re: how to get rid of pyc files ?

2009-05-24 Thread David Lyon
On Sun, 24 May 2009 15:01:51 +0200, Stef Mientki stef.mien...@gmail.com wrote: hello, Moving my entire program section between windows and Ubuntu, sometimes causes problems, due to the existence of pyc-files (and probably because my program still has hard coded paths). Is there a way to

Re: how to get rid of pyc files ?

2009-05-24 Thread Terry Reedy
Stef Mientki wrote: btw, What commandline switches are available for python ? The set of documents on the site and at least on Windows comes with Using Python. First chapter: Command Line -- http://mail.python.org/mailman/listinfo/python-list

Re: how to get rid of pyc files ?

2009-05-24 Thread Steven D'Aprano
On Sun, 24 May 2009 15:01:51 +0200, Stef Mientki wrote: Is there a way to prevent generating pyc-files ? Put the .py files in a read-only directory. Or is there a way to redirect the generated pyc-files to a dedicated location ? No. btw, What commandline switches are available for