diff data_generation/transformations/pycaptcha/Facade.py @ 174:ff26436d42d6

Make data_generation.transformations importable and fixup test.py to not try some of the modules.
author Arnaud Bergeron <abergeron@gmail.com>
date Sat, 27 Feb 2010 12:18:26 -0500
parents 1f5937e9e530
children
line wrap: on
line diff
--- a/data_generation/transformations/pycaptcha/Facade.py	Sat Feb 27 12:01:08 2010 -0500
+++ b/data_generation/transformations/pycaptcha/Facade.py	Sat Feb 27 12:18:26 2010 -0500
@@ -1,6 +1,8 @@
 #!/usr/bin/env python
-
-
+import sys, os
+curdir = os.path.dirname(__file__)
+if curdir != '':
+    sys.path.append(curdir)
 
 from Captcha.Visual.Tests import PseudoGimpy, AngryGimpy
 import numpy