s4:ldb/python: make it possible to run tests standalone
[ira/wip.git] / source4 / lib / ldb / tests / python / urgent_replication.py
index 26f7d9b46dc7028749a25b3059a8a9e7c5afdc15..5e9f4ad128fbaba3dbbf99eaf8a210861bd48b76 100755 (executable)
@@ -6,8 +6,9 @@ import sys
 import os
 
 sys.path.append("bin/python")
-sys.path.append("../lib/subunit/python")
-sys.path.append("../lib/testtools")
+import samba
+samba.ensure_external_module("subunit", "subunit/python")
+samba.ensure_external_module("testtools", "testtools")
 
 import samba.getopt as options