some more work on python3 compatible scripts

This commit is contained in:
Martin Diehl 2019-02-15 16:22:52 +01:00
parent 8b82941014
commit 88fc37d8a7
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit 3358be226989780b4969554e688a1bdff3d02c70
Subproject commit 5d43a56aa25e90462660056a45648caedd99dac6

View File

@ -21,7 +21,7 @@ class Abaqus(Solver):
except OSError: # link to abqXXX not existing
cmd='abaqus'
process = subprocess.Popen(['abaqus','information=release'],stdout = subprocess.PIPE,stderr = subprocess.PIPE)
detectedVersion = process.stdout.readlines()[1].split()[1]
detectedVersion = process.stdout.readlines()[1].split()[1].decode('utf-8')
if self.version != detectedVersion:
raise Exception('found Abaqus version {}, but requested {}'.format(detectedVersion,self.version))
return '{} -job {} -user {}/src/DAMASK_abaqus interactive'.format(cmd,model,env.rootDir())