[cpif] r21 - in trunk: . tests
svn at argo.es
svn at argo.es
Thu Apr 26 19:44:19 CEST 2007
Author: jcea
Date: Thu Apr 26 19:44:17 2007
New Revision: 21
Log:
Compatibilidad windows
Modified:
trunk/storage.py
trunk/tests/ejemplo1.py
trunk/tests/ejemplo2.py
Modified: trunk/storage.py
==============================================================================
--- trunk/storage.py (original)
+++ trunk/storage.py Thu Apr 26 19:44:17 2007
@@ -1,7 +1,7 @@
# $Id$
-import sys
-sys.path.append("./durus-berkeleydbstorage/")
+import sys,os.path
+sys.path.append(os.path.join(os.path.curdir,"durus-berkeleydbstorage"))
# Para poder acceder a los objetos desde el exterior
# del sistema, por si las moscas, utilizamos un "storage"
Modified: trunk/tests/ejemplo1.py
==============================================================================
--- trunk/tests/ejemplo1.py (original)
+++ trunk/tests/ejemplo1.py Thu Apr 26 19:44:17 2007
@@ -12,10 +12,10 @@
disable(9999)
-import os
-os.chdir("..")
+import os.path
+os.chdir(os.path.pardir)
import sys
-sys.path.append(".")
+sys.path.append(os.path.curdir)
from durus.btree import BTree
Modified: trunk/tests/ejemplo2.py
==============================================================================
--- trunk/tests/ejemplo2.py (original)
+++ trunk/tests/ejemplo2.py Thu Apr 26 19:44:17 2007
@@ -11,10 +11,10 @@
from logging import disable
disable(9999)
-import os
-os.chdir("..")
+import os.path
+os.chdir(os.path.pardir)
import sys
-sys.path.append(".")
+sys.path.append(os.path.curdir)
import storage
More information about the cpif
mailing list