Windows issue -- method to control generation of bytecode files

Alan Nichols alan.nichols at staarinc.com
Fri Jan 25 12:50:29 EST 2008


Hello,

 

I'm curious to know if there is a means available to control the location in
which bytecode files are generated.

 

It seems that for some types of user accounts (specifically regular users,
not superusers or admins) MS Windows will not allow writes to the C:\Program
Files directory.  As a result, .py source files cannot be located in
C:\Program Files because the .pyc files cannot be generated there.

Up to now we have been installing the Python code in another directory; we'd
like to move away from this if we can.

 

Is anyone aware of a workaround that would address this issue?  Skip
Montonaro raised a suggestion in 2003 (PEP304) that looked promising but it
never generated much interest.

 

Thank you for your help,

 

Alan Nichols

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080125/2150d1c5/attachment.html>


More information about the Python-list mailing list