Skip to content

Commit

Permalink
upgrade to python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Kraska committed Mar 6, 2022
1 parent 13fd64d commit 844e198
Show file tree
Hide file tree
Showing 13 changed files with 39 additions and 40 deletions.
6 changes: 3 additions & 3 deletions Dynamics/Discrete/test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
import os
import multiprocessing
import shutil
Expand All @@ -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'
Expand Down Expand Up @@ -44,4 +44,4 @@ def move(old_snap):
snap = os.listdir(os.curdir)
os.system("cgx -b run.fbd")
os.system("cgx -b runM.fbd")
move(snap)
#move(snap)
6 changes: 3 additions & 3 deletions Kasten/test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
import os
import multiprocessing
import shutil
Expand All @@ -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'
Expand Down Expand Up @@ -46,4 +46,4 @@ def move(old_snap):
os.system("ccx Kasten")
os.system("monitor.py Kasten")
os.system("cgx -b post.fbd")
move(snap)
#move(snap)
6 changes: 3 additions & 3 deletions Linear/BiaxBending/test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
import os
import multiprocessing
import shutil
Expand All @@ -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'
Expand Down Expand Up @@ -44,4 +44,4 @@ def move(old_snap):
snap = os.listdir(os.curdir)
os.system("param.py par.run.fbl")
os.system("cgx -b run.fbl")
move(snap)
#move(snap)
7 changes: 3 additions & 4 deletions Linear/Crack1/test.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#!/usr/bin/python
#!/usr/bin/env python
import os
import multiprocessing
import shutil


# Provide access to the helper scripts
def modify_path():
scripts_dir = os.path.dirname(__file__)
Expand All @@ -12,7 +11,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'
Expand Down Expand Up @@ -47,4 +46,4 @@ def move(old_snap):
os.system("param.py par.ct.geo a=20.5")
os.system("cgx -b ct.fbd")
os.system("cgx -b path.fbd")
move(snap)
#move(snap)
6 changes: 3 additions & 3 deletions Linear/L-Plate/test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
import os
import multiprocessing
import shutil
Expand All @@ -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'
Expand Down Expand Up @@ -46,4 +46,4 @@ def move(old_snap):
os.system("cgx -b run.fbl")
os.system("cgx -b vmodes.fbd")
os.system("cgx -b bmodes.fbd")
move(snap)
#move(snap)
6 changes: 3 additions & 3 deletions Linear/Mesh1/test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
import os
import multiprocessing
import shutil
Expand All @@ -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'
Expand Down Expand Up @@ -45,4 +45,4 @@ def move(old_snap):
os.system("cgx -b pre.fbl")
os.system("ccx modal")
os.system("cgx -b shapes.fbl")
move(snap)
#move(snap)
6 changes: 3 additions & 3 deletions Linear/PSE/test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
import os
import multiprocessing
import shutil
Expand All @@ -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'
Expand Down Expand Up @@ -44,4 +44,4 @@ def move(old_snap):
snap = os.listdir(os.curdir)
os.system("param.py par.run.fbl")
os.system("cgx -b run.fbl")
move(snap)
#move(snap)
6 changes: 3 additions & 3 deletions Linear/Plates/test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
import os
import multiprocessing
import shutil
Expand All @@ -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'
Expand Down Expand Up @@ -45,4 +45,4 @@ def move(old_snap):
os.system("cgx -b pre.fbd")
os.system("ccx plates")
os.system("cgx -b post.fbd")
move(snap)
#move(snap)
6 changes: 3 additions & 3 deletions Linear/Separate/test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
import os
import multiprocessing
import shutil
Expand All @@ -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'
Expand Down Expand Up @@ -47,4 +47,4 @@ def move(old_snap):
os.system("ccx element")
os.system("cgx -b post-n.fbd")
os.system("cgx -b post-e.fbd")
move(snap)
#move(snap)
6 changes: 3 additions & 3 deletions Linear/ShearCenter/test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
import os
import multiprocessing
import shutil
Expand All @@ -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'
Expand Down Expand Up @@ -46,4 +46,4 @@ def move(old_snap):
os.system("cgx -b II-pre.fbl")
os.system("ccx II")
os.system("cgx -b II-post.fbl")
move(snap)
#move(snap)
6 changes: 3 additions & 3 deletions Linear/StressConc/test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
import os
import multiprocessing
import shutil
Expand All @@ -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'
Expand Down Expand Up @@ -46,4 +46,4 @@ def move(old_snap):
os.system("cgx -b pre.fbl")
os.system("ccx Stress")
os.system("cgx -b post.fbl")
move(snap)
#move(snap)
6 changes: 3 additions & 3 deletions Linear/StressConc1/test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
import os
import multiprocessing
import shutil
Expand All @@ -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'
Expand Down Expand Up @@ -46,4 +46,4 @@ def move(old_snap):
os.system("cgx -b run.fbl")
os.system("param.py par.run1.fbl")
os.system("cgx -b run1.fbl")
move(snap)
#move(snap)
6 changes: 3 additions & 3 deletions NonLinear/3PB/test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
import os
import multiprocessing
import shutil
Expand All @@ -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'
Expand Down Expand Up @@ -48,4 +48,4 @@ def move(old_snap):
os.system("monitor.py Biegung")
os.system("cgx -b cpost.fbl")
os.system("cgx -b post.fbl")
move(snap)
#move(snap)

0 comments on commit 844e198

Please sign in to comment.