added file extension check to backendTest

This commit is contained in:
Navan Chauhan 2020-07-07 11:49:26 +05:30
parent 962fd95d69
commit 876eaef701
1 changed files with 7 additions and 0 deletions

View File

@ -68,6 +68,13 @@ f = os.path.join(cd,"static/uploads")
#t = os.path.join(f,"receptor",target)
#r = os.path.join(f,"ligands",ligand)
#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)
import tempfile
from shutil import copy