diff --git a/NonLinear/Cut/test.py b/NonLinear/Cut/test.py index e6e0bb16..c058c23d 100755 --- a/NonLinear/Cut/test.py +++ b/NonLinear/Cut/test.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import os import multiprocessing import shutil @@ -12,7 +12,7 @@ def modify_path(): scripts_dir = os.path.join(scripts_dir, 'Scripts') if not scripts_dir in os.environ['PATH']: os.environ['PATH'] += os.pathsep + scripts_dir - print '\nPATH = {}\n'.format(os.environ['PATH']) + print('\nPATH = {}\n'.format(os.environ['PATH'])) # Move new files and folders to 'Refs' @@ -47,4 +47,4 @@ def move(old_snap): os.system("ccx solve") os.system("monitor.py solve") os.system("cgx -b post.fbd") - move(snap) + #move(snap) diff --git a/NonLinear/Honeycomb/test.py b/NonLinear/Honeycomb/test.py index afe6017d..584c5b65 100755 --- a/NonLinear/Honeycomb/test.py +++ b/NonLinear/Honeycomb/test.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import os import multiprocessing import shutil @@ -12,7 +12,7 @@ def modify_path(): scripts_dir = os.path.join(scripts_dir, 'Scripts') if not scripts_dir in os.environ['PATH']: os.environ['PATH'] += os.pathsep + scripts_dir - print '\nPATH = {}\n'.format(os.environ['PATH']) + print('\nPATH = {}\n'.format(os.environ['PATH'])) # Move new files and folders to 'Refs' @@ -47,4 +47,4 @@ def move(old_snap): os.system("ccx Biegung") os.system("monitor.py Biegung") os.system("cgx -b post.fbd") - move(snap) + #move(snap) diff --git a/NonLinear/Rohrknie/test.py b/NonLinear/Rohrknie/test.py index f8e08e44..bd803401 100755 --- a/NonLinear/Rohrknie/test.py +++ b/NonLinear/Rohrknie/test.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import os import multiprocessing import shutil @@ -12,7 +12,7 @@ def modify_path(): scripts_dir = os.path.join(scripts_dir, 'Scripts') if not scripts_dir in os.environ['PATH']: os.environ['PATH'] += os.pathsep + scripts_dir - print '\nPATH = {}\n'.format(os.environ['PATH']) + print('\nPATH = {}\n'.format(os.environ['PATH'])) # Move new files and folders to 'Refs' @@ -50,4 +50,4 @@ def move(old_snap): os.system("ccx solid-static") os.system("monitor.py solid-static") os.system("cgx -b post-solid-static.fbd") - move(snap) + #move(snap) diff --git a/NonLinear/Sandwichtest/test.py b/NonLinear/Sandwichtest/test.py index 99cb6374..7b3a5a48 100755 --- a/NonLinear/Sandwichtest/test.py +++ b/NonLinear/Sandwichtest/test.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import os import multiprocessing import shutil @@ -12,7 +12,7 @@ def modify_path(): scripts_dir = os.path.join(scripts_dir, 'Scripts') if not scripts_dir in os.environ['PATH']: os.environ['PATH'] += os.pathsep + scripts_dir - print '\nPATH = {}\n'.format(os.environ['PATH']) + print('\nPATH = {}\n'.format(os.environ['PATH'])) # Move new files and folders to 'Refs' @@ -46,4 +46,4 @@ def move(old_snap): os.system("ccx Biegung") os.system("monitor.py Biegung") os.system("cgx -b post.fbl") - move(snap) + #move(snap) diff --git a/NonLinear/Sections/Plastic/test.py b/NonLinear/Sections/Plastic/test.py index 7c03b531..4796aa9d 100755 --- a/NonLinear/Sections/Plastic/test.py +++ b/NonLinear/Sections/Plastic/test.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import os import multiprocessing import shutil @@ -12,7 +12,7 @@ def modify_path(): scripts_dir = os.path.join(scripts_dir, 'Scripts') if not scripts_dir in os.environ['PATH']: os.environ['PATH'] += os.pathsep + scripts_dir - print '\nPATH = {}\n'.format(os.environ['PATH']) + print('\nPATH = {}\n'.format(os.environ['PATH'])) # Move new files and folders to 'Refs' @@ -48,4 +48,4 @@ def move(old_snap): os.system("monitor.py Biegung") os.system("cgx -b movie.fbl") os.system("cgx -b chart.fbl") - move(snap) + #move(snap) diff --git a/NonLinear/Sections/test.py b/NonLinear/Sections/test.py index c24cc2a8..8f38d0a7 100755 --- a/NonLinear/Sections/test.py +++ b/NonLinear/Sections/test.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import os import multiprocessing import shutil @@ -12,7 +12,7 @@ def modify_path(): scripts_dir = os.path.join(scripts_dir, 'Scripts') if not scripts_dir in os.environ['PATH']: os.environ['PATH'] += os.pathsep + scripts_dir - print '\nPATH = {}\n'.format(os.environ['PATH']) + print('\nPATH = {}\n'.format(os.environ['PATH'])) # Move new files and folders to 'Refs' @@ -47,4 +47,4 @@ def move(old_snap): os.system("ccx Biegung") os.system("monitor.py Biegung") os.system("cgx -b post.fbl") - move(snap) + #move(snap) diff --git a/NonLinear/TensileTest/test.py b/NonLinear/TensileTest/test.py index 4097f50e..19f347ed 100755 --- a/NonLinear/TensileTest/test.py +++ b/NonLinear/TensileTest/test.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import os import multiprocessing import shutil @@ -12,7 +12,7 @@ def modify_path(): scripts_dir = os.path.join(scripts_dir, 'Scripts') if not scripts_dir in os.environ['PATH']: os.environ['PATH'] += os.pathsep + scripts_dir - print '\nPATH = {}\n'.format(os.environ['PATH']) + print('\nPATH = {}\n'.format(os.environ['PATH'])) # Move new files and folders to 'Refs' @@ -46,4 +46,4 @@ def move(old_snap): os.system("ccx Zug") os.system("monitor.py Zug") os.system("cgx -b post.fbd") - move(snap) + #move(snap) diff --git a/Pillow/test.py b/Pillow/test.py index 68d9c4fc..d03ef382 100755 --- a/Pillow/test.py +++ b/Pillow/test.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python """ Test for the pillow example """ @@ -15,7 +15,7 @@ def modify_path(): scripts_dir = os.path.join(scripts_dir, 'Scripts') if not scripts_dir in os.environ['PATH']: os.environ['PATH'] += os.pathsep + scripts_dir - print '\nPATH = {}\n'.format(os.environ['PATH']) + print('\nPATH = {}\n'.format(os.environ['PATH'])) def run(): @@ -31,7 +31,7 @@ def run(): # loop over element types for elty in eltyps.keys(): # open results summary file - print elty + print(elty) # read pre.fbd and write it to pre-auto.fbd fout = open("run_auto.fbd", "w") fout.write("ulin "+elty+"\n") @@ -79,4 +79,4 @@ def move(old_snap): modify_path() snap = os.listdir(os.curdir) run() - move(snap) + #move(snap) diff --git a/Scripts/param.py b/Scripts/param.py index 0915bff6..f29c7ea6 100755 --- a/Scripts/param.py +++ b/Scripts/param.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python """ This script searches for strings in angle brackets <...> diff --git a/Scripts/periodic.py b/Scripts/periodic.py index 092bd289..63349958 100755 --- a/Scripts/periodic.py +++ b/Scripts/periodic.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python """ This script creates equations for periodic boundary conditions of a brick-shaped RVE. We assume that it's corners are at (0,0,0) and (lx,ly,lz). The dimensions are determined from the nodal co-ordinates. diff --git a/Scripts/separate.py b/Scripts/separate.py index 606f9414..78d715d3 100755 --- a/Scripts/separate.py +++ b/Scripts/separate.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python """ This script replicates nodes to avoid nodal averaging of results. The elements are scanned and if a node is used repeatedly, it is replaced by diff --git a/Test/Joints/test.py b/Test/Joints/test.py index dcd99871..23c28061 100755 --- a/Test/Joints/test.py +++ b/Test/Joints/test.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import os import multiprocessing import shutil @@ -12,7 +12,7 @@ def modify_path(): scripts_dir = os.path.join(scripts_dir, 'Scripts') if not scripts_dir in os.environ['PATH']: os.environ['PATH'] += os.pathsep + scripts_dir - print '\nPATH = {}\n'.format(os.environ['PATH']) + print('\nPATH = {}\n'.format(os.environ['PATH'])) # Move new files and folders to 'Refs' @@ -49,4 +49,4 @@ def move(old_snap): os.system("param.py par.pre2.fbl") os.system("cgx -b pre2.fbl") os.system("cgx -b kin2.fbl") - move(snap) + #move(snap) diff --git a/Test/Meanrot/test.py b/Test/Meanrot/test.py index e0fceacd..17cc828a 100755 --- a/Test/Meanrot/test.py +++ b/Test/Meanrot/test.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import os import multiprocessing import shutil @@ -12,7 +12,7 @@ def modify_path(): scripts_dir = os.path.join(scripts_dir, 'Scripts') if not scripts_dir in os.environ['PATH']: os.environ['PATH'] += os.pathsep + scripts_dir - print '\nPATH = {}\n'.format(os.environ['PATH']) + print('\nPATH = {}\n'.format(os.environ['PATH'])) # Move new files and folders to 'Refs' @@ -43,4 +43,4 @@ def move(old_snap): modify_path() snap = os.listdir(os.curdir) os.system("cgx -b run.fbl") - move(snap) + #move(snap) diff --git a/Test/Supports/test.py b/Test/Supports/test.py index 1bd3a43d..5475cb4a 100755 --- a/Test/Supports/test.py +++ b/Test/Supports/test.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import os import multiprocessing import shutil @@ -12,7 +12,7 @@ def modify_path(): scripts_dir = os.path.join(scripts_dir, 'Scripts') if not scripts_dir in os.environ['PATH']: os.environ['PATH'] += os.pathsep + scripts_dir - print '\nPATH = {}\n'.format(os.environ['PATH']) + print('\nPATH = {}\n'.format(os.environ['PATH'])) # Move new files and folders to 'Refs' @@ -50,4 +50,4 @@ def move(old_snap): os.system("cgx -b post.fbl") os.system("ccx trfix") os.system("cgx -b trfix.fbl") - move(snap) + #move(snap) diff --git a/Test/Supports1/test.py b/Test/Supports1/test.py index 6089e39a..750216b9 100755 --- a/Test/Supports1/test.py +++ b/Test/Supports1/test.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import os import multiprocessing import shutil @@ -12,7 +12,7 @@ def modify_path(): scripts_dir = os.path.join(scripts_dir, 'Scripts') if not scripts_dir in os.environ['PATH']: os.environ['PATH'] += os.pathsep + scripts_dir - print '\nPATH = {}\n'.format(os.environ['PATH']) + print('\nPATH = {}\n'.format(os.environ['PATH'])) # Move new files and folders to 'Refs' @@ -44,4 +44,4 @@ def move(old_snap): snap = os.listdir(os.curdir) os.system("cgx -b gmsh.fbl") os.system("cgx -b run.fbl") - move(snap) + #move(snap) diff --git a/Thermal/Thermal distortion/test.py b/Thermal/Thermal distortion/test.py index fc8b388d..4ddd25cd 100755 --- a/Thermal/Thermal distortion/test.py +++ b/Thermal/Thermal distortion/test.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import os import multiprocessing import shutil @@ -12,7 +12,7 @@ def modify_path(): scripts_dir = os.path.join(scripts_dir, 'Scripts') if not scripts_dir in os.environ['PATH']: os.environ['PATH'] += os.pathsep + scripts_dir - print '\nPATH = {}\n'.format(os.environ['PATH']) + print('\nPATH = {}\n'.format(os.environ['PATH'])) # Move new files and folders to 'Refs' @@ -47,4 +47,4 @@ def move(old_snap): os.system("cgx -b pre.fbd") os.system("ccx Tjoint") os.system("cgx -b post.fbd") - move(snap) + #move(snap) diff --git a/Thermal/Thermal shock/test.py b/Thermal/Thermal shock/test.py index 663e8f4c..65172b58 100755 --- a/Thermal/Thermal shock/test.py +++ b/Thermal/Thermal shock/test.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import os import multiprocessing import shutil @@ -12,7 +12,7 @@ def modify_path(): scripts_dir = os.path.join(scripts_dir, 'Scripts') if not scripts_dir in os.environ['PATH']: os.environ['PATH'] += os.pathsep + scripts_dir - print '\nPATH = {}\n'.format(os.environ['PATH']) + print('\nPATH = {}\n'.format(os.environ['PATH'])) # Move new files and folders to 'Refs' @@ -47,4 +47,4 @@ def move(old_snap): os.system("monitor.py solve") os.system("cgx -b anim.fbl") os.system("cgx -b post.fbl") - move(snap) + #move(snap) diff --git a/Thermal/Thermografie/test.py b/Thermal/Thermografie/test.py index 6e137caa..e30628b8 100755 --- a/Thermal/Thermografie/test.py +++ b/Thermal/Thermografie/test.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import os import multiprocessing import shutil @@ -12,7 +12,7 @@ def modify_path(): scripts_dir = os.path.join(scripts_dir, 'Scripts') if not scripts_dir in os.environ['PATH']: os.environ['PATH'] += os.pathsep + scripts_dir - print '\nPATH = {}\n'.format(os.environ['PATH']) + print('\nPATH = {}\n'.format(os.environ['PATH'])) # Move new files and folders to 'Refs' @@ -46,4 +46,4 @@ def move(old_snap): os.system("ccx Naht") os.system("cgx -b post.fbl") os.system("cgx -b plots.fbl") - move(snap) + #move(snap)