[issue12618] py_compile cannot create files in current directory

Sjoerd de Vries report at bugs.python.org
Mon Oct 24 19:00:49 CEST 2011


Sjoerd de Vries <sjdv1982 at gmail.com> added the comment:

Hi Éric,

There you go, adapted from http://effbot.org/librarybook/py-compile.htm :

############
# File: py-compile-example-1.py

import py_compile

# explicitly compile this module
py_compile.compile("py-compile-example-1.py","py-compile-example-1.pyc")

############

Also, I tested and this bug is present neither on 3.1 nor on 2.x

cheers
Sjoerd

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12618>
_______________________________________


More information about the Python-bugs-list mailing list