Add quixote work-around for python 2.6

* for every directory containing *.ptl files the next lines must be
   added to the __init__.py file:
   from quixote.ptl import compile_package
   compile_package(__path__)
 * enable_ptl() must not be used.
This commit is contained in:
Benjamin Dauvergne 2009-04-02 13:16:00 +00:00
parent 18eb0aa18b
commit 7b6012e21a
4 changed files with 9 additions and 1 deletions

View File

@ -1,7 +1,9 @@
from quixote.ptl import compile_package
compile_package(__path__)
import __builtin__
from quixote import enable_ptl, get_publisher
enable_ptl()
from publisher import get_cfg, get_logger

View File

@ -0,0 +1,2 @@
from quixote.ptl import compile_package
compile_package(__path__)

View File

@ -0,0 +1,2 @@
from quixote.ptl import compile_package
compile_package(__path__)

View File

@ -1,3 +1,5 @@
from quixote.ptl import compile_package
compile_package(__path__)
from quixote import get_publisher
import base