I’m trying to call Sen2Cor in a python file using this code:
subprocess.check_call([L2A_Process , str(scene)],shell=True)
where L2A_Process is the path for L2A_Process bash script and scene is the path for the SAFE folder. However, on running this file, it says
Sen2Cor/bin/python2.7: not found
However, The following code returns a positive output and affirms that the file is there:
if os.path.exists("/usr/local/lib/python2.7/dist-packages/Sen2Cor/bin/python2.7"): logging.info("Sen2Cor/bin/python2.7 exists") else: logging.info("Sen2Cor/bin/python2.7 does not exist")
I’ve also tried testing with absolute paths but to no avail
Any clue about what might help?