Skip to content
Snippets Groups Projects

Updating models to allow normal imports

Open Zach Marshall requested to merge zmarshal/MadGraphModels:normal_imports into main
Files
2
+ 1
1
@@ -12,7 +12,7 @@ perl -pi -e "s/^from function_library/from .function_library/g" ${1}/*.py
perl -pi -e "s/^import propagators/from . import propagators/g" ${1}/*.py
echo "Testing..."
python3 -c "exec(\"import ${1}\".replace(\"/\",\".\"))"
python3 -c "__import__(\"${1}\".replace(\"/\",\".\"))"
if [ $? -ne 0 ]
then
echo "This doesnt seem to have worked. Please check by hand."
Loading