diff options
-rwxr-xr-x | io_curve_svg/svg_util_test.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/io_curve_svg/svg_util_test.py b/io_curve_svg/svg_util_test.py index 340a6088..68f3a8b0 100755 --- a/io_curve_svg/svg_util_test.py +++ b/io_curve_svg/svg_util_test.py @@ -20,7 +20,13 @@ # <pep8 compliant> -from .svg_util import parse_array_of_floats + +# XXX Not really nice, but that hack is needed to allow execution of that test +# from both automated CTest and by directly running the file manually... +if __name__ == '__main__': + from svg_util import parse_array_of_floats +else: + from .svg_util import parse_array_of_floats import unittest |