This is my problem:
fpaths=os.listdir(ligand_names_list[0].replace("'", "\\'"))
OSError: [Errno 2] No such file or directory: "5-iodoindirubin-3\\'-oxime"
There is a file named 5-iodoindirubin-3'-oxime
but I cannot make os.listdir()
to find it. Here's another attempt I made inspired by this thread Adding backslashes without escaping [Python] :
fpaths=os.listdir(ligand_names_list[0].__ repr __())
OSError: [Errno 2] No such file or directory: '"5-iodoindirubin-3\'-oxime"'
The problem in this case is the leading single quotes which I don't know how to remove them. Any idea?