Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrikfolkerts committed Sep 19, 2019
1 parent e5a617f commit 6b41218
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
Binary file modified doc.pdf
Binary file not shown.
17 changes: 9 additions & 8 deletions main.py
Expand Up @@ -61,14 +61,15 @@
for hfile in os.listdir(usedMB):
hfilepathname = os.path.join(usedMB, hfile)
newhfilepathname = os.path.join(os.path.split(sesFilePath)[0], hfile)
try:
if os.path.isdir(hfilepathname):
shutil.copytree(hfilepathname, newhfilepathname)
else:
shutil.copyfile(hfilepathname, newhfilepathname)
except:
print("Error copying the MB file(s) in the directory with the SES file!")
addedMbFiles.append(newhfilepathname)
if not os.path.exists(newhfilepathname):
try:
if os.path.isdir(hfilepathname):
shutil.copytree(hfilepathname, newhfilepathname)
else:
shutil.copyfile(hfilepathname, newhfilepathname)
except:
print("Error copying the MB file(s) in the directory with the SES file!")
addedMbFiles.append(newhfilepathname)

resultfile = sesecpyGeneralObject.executeToolchain(sesecpyGeneral, infrastructurePath, pythoncall, sesFilePath, sesvars, pesFilePath, fpesFilePath, deletePES, deleteFPES, deleteModelsAfterSimulation, appendConfig)
if resultfile == "":
Expand Down

0 comments on commit 6b41218

Please sign in to comment.