[cpif] r39 - in trunk: . backend backend/db backend/db-test db db-test

svn at argo.es svn at argo.es
Fri May 11 16:41:09 CEST 2007


Author: jcea
Date: Fri May 11 16:41:08 2007
New Revision: 39

Log:


Added:
   trunk/backend/db/
      - copied from r38, /trunk/db/
   trunk/backend/db-test/
      - copied from r38, /trunk/db-test/
Removed:
   trunk/db/
   trunk/db-test/
Modified:
   trunk/backend/storage.py
   trunk/demo_web.py

Modified: trunk/backend/storage.py
==============================================================================
--- trunk/backend/storage.py	(original)
+++ trunk/backend/storage.py	Fri May 11 16:41:08 2007
@@ -1,7 +1,8 @@
 # $Id$
 
 import sys,os.path
-sys.path.append(os.path.join(os.path.curdir,"durus-berkeleydbstorage"))
+directorio=os.path.split(sys.modules["storage"].__file__)[0]
+sys.path.append(os.path.join(directorio,"durus-berkeleydbstorage"))
 
 # Para poder acceder a los objetos desde el exterior
 # del sistema, por si las moscas, utilizamos un "storage"

Modified: trunk/demo_web.py
==============================================================================
--- trunk/demo_web.py	(original)
+++ trunk/demo_web.py	Fri May 11 16:41:08 2007
@@ -201,7 +201,7 @@
   sys.path.append("backend")
 
   import storage
-  dummy,dummy,monitor=storage.storage_and_monitor("db")
+  dummy,dummy,monitor=storage.storage_and_monitor(os.path.join("backend","db"))
 
   import database
 



More information about the cpif mailing list