Mercurial > repos > recetox > rmassbank
view addBabelPath.py @ 1:6fa3c0ba2e66 draft
"planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/rmassbank commit 9bc547872c98a9c13c561d15e8990fe82bdc0e72"
author | recetox |
---|---|
date | Fri, 28 Jan 2022 16:31:11 +0000 |
parents | ef3965a6b927 |
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()