i hope you guys can help me with this problem because i'm really stuck... I'm trying to execute a program from python and, for some reason, it doesn't work. The script is located at:
path/to/teqc
I've added this line to the .bashrc file:
alias teqc='path/to/teqc'
and, when i run
teqc -tr d input >output
on a terminal it works fine... but, if i run it on a python program, it shows:
sh: teqc: command not found
the code i've been using on python is:
os.system('teqc -tr d input >output')
I tried using
subprocess.Popen('teqc -tr d input >output', shell=True, executable="/bin/bash")
but the only result was to change the error message to
/bin/bash: teqc: command not found
Any help would be really appreciated :)
P.D. I forgot to specify, the operating system is Fedora 21