added file extension check to backendTest
This commit is contained in:
parent
962fd95d69
commit
876eaef701
|
@ -68,6 +68,13 @@ f = os.path.join(cd,"static/uploads")
|
||||||
#t = os.path.join(f,"receptor",target)
|
#t = os.path.join(f,"receptor",target)
|
||||||
#r = os.path.join(f,"ligands",ligand)
|
#r = os.path.join(f,"ligands",ligand)
|
||||||
#c = os.path.join(f,"configs",config)
|
#c = os.path.join(f,"configs",config)
|
||||||
|
|
||||||
|
if ".pdbqt" not in receptor_name:
|
||||||
|
receptor_name+=".pdbqt"
|
||||||
|
|
||||||
|
if ".pdbqt" not in ligand_name:
|
||||||
|
ligand_name+=".pdbqt"
|
||||||
|
|
||||||
print(f)
|
print(f)
|
||||||
import tempfile
|
import tempfile
|
||||||
from shutil import copy
|
from shutil import copy
|
||||||
|
|
Loading…
Reference in New Issue