diff options
author | fahim | 2015-02-18 15:40:04 +0530 |
---|---|---|
committer | fahim | 2015-02-18 15:40:04 +0530 |
commit | 6e070b2fccfb9142ead325a9f437f28144e99ce8 (patch) | |
tree | 739340cf5bde7a0424064018da689dd2c18e5dac /src/projManagement | |
parent | 756ad7fcfe3e9cb7f1c90e0c773cfb46243a2496 (diff) | |
download | eSim-6e070b2fccfb9142ead325a9f437f28144e99ce8.tar.gz eSim-6e070b2fccfb9142ead325a9f437f28144e99ce8.tar.bz2 eSim-6e070b2fccfb9142ead325a9f437f28144e99ce8.zip |
Subject: Deleted Unwanted file
Description: Deleted unwanted file
Diffstat (limited to 'src/projManagement')
-rw-r--r-- | src/projManagement/Validation.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/projManagement/Validation.py b/src/projManagement/Validation.py index b53dfe49..70b29ab5 100644 --- a/src/projManagement/Validation.py +++ b/src/projManagement/Validation.py @@ -25,9 +25,9 @@ class Validation: def validateOpenproj(self,proj_directory): print "Valid open Proj called" - tempStr = proj_directory.split('/') - projName = tempStr[len(tempStr)-1] - if os.path.exists(proj_directory+"/"+projName+".proj"): + projName = os.path.basename(str(proj_directory)) + lookProj = os.path.join(str(proj_directory),projName+".proj") + if os.path.exists(lookProj): return True else: return False |