diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2020-07-07 11:49:26 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2020-07-07 11:49:26 +0530 |
commit | 876eaef701d2fdd124ca0eee8a4a00f811416bd3 (patch) | |
tree | 0a22e1f30c0706c8454e58440a529b6dc2dc3fec | |
parent | 962fd95d6972c3a5c386b158c5f7cf51de8b2440 (diff) |
added file extension check to backendTest
-rw-r--r-- | tests/backendTest.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/backendTest.py b/tests/backendTest.py index 470444c..31b3a99 100644 --- a/tests/backendTest.py +++ b/tests/backendTest.py @@ -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 |