Skip to content

Commit 56f3502

Browse files
committed
Fix bugs
Fix bug in deleting temporary makefile. Fix bug in displaying command to use on Windows
1 parent ec379ab commit 56f3502

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

add_physipkpd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@
5353
i+=1
5454
print(f"\t For a sample project:")
5555
print(f"\t\t(MacOS/Unix)\tpython {studio_dir}/bin/studio.py -c ./config/PhysiCell_settings.xml -e {project_name} --pkpd")
56-
print(f"\t\t(Windows)\tpython {studio_dir}\bin\studio.py -c .\config\PhysiCell_settings.xml -e {project_name}.exe --pkpd")
56+
print(f"\t\t(Windows)\tpython {studio_dir}\\bin\studio.py -c .\config\PhysiCell_settings.xml -e {project_name}.exe --pkpd")
5757
print(f"\t For a template project:")
5858
print(f"\t\t(MacOS/Unix)\tpython {studio_dir}/bin/studio.py -c ./config/PhysiCell_settings.xml -e {project_name} --pkpd")
59-
print(f"\t\t(Windows)\tpython {studio_dir}\bin\studio.py -c .\config\PhysiCell_settings.xml -e {project_name}.exe --pkpd")
59+
print(f"\t\t(Windows)\tpython {studio_dir}\\bin\studio.py -c .\config\PhysiCell_settings.xml -e {project_name}.exe --pkpd")
6060
else:
6161
print(f"\t{i}. Edit according to https://github.com/drbergman/PhysiPKPD/releases/latest")
6262
i+=1

helpers_for_get_and_add.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def get_line_number(s, lines, print_missing_message=True):
256256
f.writelines(lines)
257257

258258
print(f"All files (Makefile, main.cpp, and custom_modules/custom.h) updated and overwritten now. Removing temporary files...")
259-
if os.path.exists(makefile):
259+
if os.path.exists(makefile_temp):
260260
os.remove(makefile_temp)
261261
if os.path.exists(main_temp):
262262
os.remove(main_temp)

0 commit comments

Comments
 (0)