<div dir="ltr">Hello folks, <br><br>I am writing a program(prog 1) in python , which requires to know the path of another program(prog 2) in order to execute.I can get my prog1 to work when i hard code the path of the existing program(prog2).But since the path of prog could be anywhere on the file system , thus i cannot hard codes its path.And i am not supposed to take the path of prog2 as an input to prog1.So is there anyway to solve this problem , by the creation of environment variable (whose value is set as the path of prog 2)?Also how do i create environment variable for prog1?<br>
<br><br>Thanks in advance<br><br>Aditya<br></div>