view addBabelPath.py @ 2:5a6bb93ec656 draft default tip

planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/rmassbank commit bc3445f7c41271b0062c7674108f57708d08dd28
author recetox
date Thu, 30 May 2024 14:53:55 +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()