Mercurial > repos > recetox > rmassbank
view addBabelPath.py @ 1:c1a9c990d4b0 draft
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/rmassbank commit b1cc1aebf796f170d93e3dd46ffcdefdc7b8018a
author | recetox |
---|---|
date | Thu, 12 Oct 2023 13:31:44 +0000 |
parents | 0b28816c1c2c |
children |
line wrap: on
line source
import sys # Script that replaces OpenBabel path in settings file used within Galaxy (tools installed via conda)# # python script.py /path/settings_file /babeldir/path fin = open(sys.argv[1], "r") fout = open("mysettings_galaxy.ini", "wt") for line in fin: if "babeldir:" in line and "#" not in line: fout.write("babeldir: '" + sys.argv[2] + "'\n") else: fout.write(line) fin.close() fout.close()