Fix newline for scripts

This commit is contained in:
Eren Dogan 2023-01-28 22:59:08 -08:00
parent e5fc25da6f
commit dce324fc94
1 changed files with 2 additions and 2 deletions

View File

@ -36,11 +36,11 @@ def run_script(cell_name, script="lvs"):
script_content = f.readlines()
with open(scriptpath, "w") as f:
# First line is shebang
f.write(script_content[0] + "\n")
f.write(script_content[0])
# Activate conda using the activate script
f.write("source {}/bin/activate\n".format(CONDA_HOME))
for line in script_content[1:]:
f.write(line + "\n")
f.write(line)
# Deactivate conda at the end
f.write("conda deactivate\n")