aboutsummaryrefslogtreecommitdiff
path: root/Examples/analysis_default_regression.py
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/analysis_default_regression.py')
-rwxr-xr-xExamples/analysis_default_regression.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Examples/analysis_default_regression.py b/Examples/analysis_default_regression.py
index c920393fb..1c22fb738 100755
--- a/Examples/analysis_default_regression.py
+++ b/Examples/analysis_default_regression.py
@@ -1,5 +1,6 @@
#! /usr/bin/env python
+import os
import sys
import re
sys.path.insert(1, '../../../../warpx/Regression/Checksum/')
@@ -9,7 +10,7 @@ import checksumAPI
fn = sys.argv[1]
# Get name of the test
-test_name = fn[:-9] # Could also be os.path.split(os.getcwd())[1]
+test_name = os.path.split(os.getcwd())[1]
# Run checksum regression test
if re.search( 'single_precision', fn ):