Fix Python load path
authorKlaus Kämpf <kkaempf@suse.de>
Sun, 7 Nov 2010 13:30:48 +0000 (14:30 +0100)
committerKlaus Kämpf <kkaempf@suse.de>
Sun, 7 Nov 2010 13:30:48 +0000 (14:30 +0100)
swig/python/tests/loading.py
swig/python/tests/repoinfo.py

index 3a751a7..c3b6b40 100644 (file)
@@ -1,7 +1,7 @@
 import unittest
 
 import sys
-sys.path.insert(0, '../../../build/swig/python')
+sys.path.insert(0, '../../../../build/swig/python')
 
 class TestSequenceFunctions(unittest.TestCase):
     
index e134709..12587f4 100644 (file)
@@ -4,8 +4,11 @@
 #
 
 import unittest
-from zypp import RepoInfo, Url, UrlSet, RepoType
+
 import sys
+sys.path.insert(0, '../../../../build/swig/python')
+
+from zypp import RepoInfo, Url, UrlSet, RepoType
 
 repo_urls = [ "file:/mounts/mirror/SuSE/ftp.opensuse.org/srv/ftp/pub/opensuse/debug/update/11.1/", 
               "http://download.opensuse.org/debug/update/11.1/" ]