[Thuban-commits] r2900 - trunk/thuban/test
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Jul 15 14:51:19 CEST 2011
Author: bricks
Date: 2011-07-15 14:51:18 +0200 (Fri, 15 Jul 2011)
New Revision: 2900
Modified:
trunk/thuban/test/support.py
Log:
Import thuban instead of thubaninit which isn't available
Modified: trunk/thuban/test/support.py
===================================================================
--- trunk/thuban/test/support.py 2011-07-15 12:06:19 UTC (rev 2899)
+++ trunk/thuban/test/support.py 2011-07-15 12:51:18 UTC (rev 2900)
@@ -33,13 +33,12 @@
If it's already part of the path, remove later occurrences.
"""
- dir = thuban_dir()
- while 1:
- try:
- sys.path.remove(dir)
- except ValueError:
- break
- sys.path.insert(0, dir)
+ t_dir = thuban_dir()
+ try:
+ sys.path.remove(t_dir)
+ except ValueError:
+ pass
+ sys.path.insert(0, t_dir)
_initthuban_done = 0
@@ -57,7 +56,7 @@
except KeyError:
pass
add_thuban_dir_to_path()
- import thubaninit
+ import thuban
# Install a dummy translation function so that importing
# Thuban.UI doesn't install a wx specific one for which would
More information about the Thuban-commits
mailing list