From 0d4db957f8fc16ec0ad1eae72aa44e6729700bf3 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Mon, 14 Jan 2013 15:20:17 +0000 Subject: [PATCH] started to rearrange testing folder --- lib/damask/test/test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/damask/test/test.py b/lib/damask/test/test.py index 6cd5459e5..e14535331 100644 --- a/lib/damask/test/test.py +++ b/lib/damask/test/test.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # $Id$ -import os, sys, shlex +import os, sys, shlex, inspect import subprocess,shutil,string import damask from optparse import OptionParser @@ -20,7 +20,7 @@ class Test(): +'----------------------------------------------------------------\n' \ +'| '+test_description+'\n' \ +'----------------------------------------------------------------' - self.dirBase = os.path.dirname(os.path.realpath(sys.argv[0])) + self.dirBase = os.path.dirname(os.path.realpath(inspect.getfile(self.__class__))) self.parser = OptionParser( description = 'Using: $Id run_test.py 1285 2012-02-09 08:54:09Z MPIE\m.diehl $', usage='run_test.py [options]')