suppress pyc generation

E

Eddy Ilg

Hi,

I would like to suppress .pyc generation or have the .pyc generation in a
speical seperate root (I found something about PYCROOT). Has this been
implemented yet? Is there an environment variable or a command line switch
that suppresses .pyc generation?

Eddy
 
I

Ivan Herman

There is a simple, though slightly ugly trick: if the directory where the python
module resides, is not writable to the python process, the python runtime will
silently ignore .pyc generation (as far as I know). It is not elegant, but it
works...

Ivan

-------- Original Message --------
From: "Eddy Ilg" <[email protected]>
To:
Subject: suppress pyc generation
Date: 25/12/2005 14:01
 
I

Ivan Herman

There is a simple, though slightly ugly trick: if the directory where the python
module resides, is not writable to the python process, the python runtime will
silently ignore .pyc generation (as far as I know). It is not elegant, but it
works...

Ivan

-------- Original Message --------
From: "Eddy Ilg" <[email protected]>
To:
Subject: suppress pyc generation
Date: 25/12/2005 14:01
 
I

Ivan Herman

There is a simple, though slightly ugly trick: if the directory where the python
module resides, is not writable to the python process, the python runtime will
silently ignore .pyc generation (as far as I know). It is not elegant, but it
works...

Ivan

-------- Original Message --------
From: "Eddy Ilg" <[email protected]>
To:
Subject: suppress pyc generation
Date: 25/12/2005 14:01
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top