comparison 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
comparison
equal deleted inserted replaced
173:954185d6002a 174:ff26436d42d6
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2 import sys, os
3 3 curdir = os.path.dirname(__file__)
4 if curdir != '':
5 sys.path.append(curdir)
4 6
5 from Captcha.Visual.Tests import PseudoGimpy, AngryGimpy 7 from Captcha.Visual.Tests import PseudoGimpy, AngryGimpy
6 import numpy 8 import numpy
7 9
8 # Une fonction simple pour generer un captcha 10 # Une fonction simple pour generer un captcha