summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbdauvergne <bdauvergne@3ed937ae-f919-0410-9a43-8e6f19e4ba6e>2009-04-27 13:02:35 (GMT)
committerbdauvergne <bdauvergne@3ed937ae-f919-0410-9a43-8e6f19e4ba6e>2009-04-27 13:02:35 (GMT)
commitf612aba869bc2f08c3ce17631c312ab56fc61ebc (patch)
tree8df80f3c37e4b5a49c1dcf257d333b80119da226
parent5309a31a7c97966234ed1d0151dff63c09ea9880 (diff)
downloadlarpe-f612aba869bc2f08c3ce17631c312ab56fc61ebc.zip
larpe-f612aba869bc2f08c3ce17631c312ab56fc61ebc.tar.gz
larpe-f612aba869bc2f08c3ce17631c312ab56fc61ebc.tar.bz2
Adapt to python2.6
* larpe/__init__.py: * larpe/admin/__init__.py: add code to support quixote and python 2.6 git-svn-id: svn+ssh://labs.libre-entreprise.org/svnroot/larpe@470 3ed937ae-f919-0410-9a43-8e6f19e4ba6e
-rw-r--r--larpe/trunk/larpe/__init__.py5
-rw-r--r--larpe/trunk/larpe/admin/__init__.py5
2 files changed, 10 insertions, 0 deletions
diff --git a/larpe/trunk/larpe/__init__.py b/larpe/trunk/larpe/__init__.py
index f89239d..ee83c50 100644
--- a/larpe/trunk/larpe/__init__.py
+++ b/larpe/trunk/larpe/__init__.py
@@ -1,4 +1,9 @@
'''Setup path and load Lasso library'''
+try:
+ from quixote.ptl import compile_package
+ compile_package(__path__)
+except ImportError:
+ pass
import sys
import os
diff --git a/larpe/trunk/larpe/admin/__init__.py b/larpe/trunk/larpe/admin/__init__.py
index 53f1b4b..d6622e6 100644
--- a/larpe/trunk/larpe/admin/__init__.py
+++ b/larpe/trunk/larpe/admin/__init__.py
@@ -1 +1,6 @@
+try:
+ from quixote.ptl import compile_package
+ compile_package(__path__)
+except ImportError:
+ pass
from root import RootDirectory