summaryrefslogtreecommitdiff
path: root/src/projManagement/Validation.py
diff options
context:
space:
mode:
authorfahim2015-02-18 15:40:04 +0530
committerfahim2015-02-18 15:40:04 +0530
commit6e070b2fccfb9142ead325a9f437f28144e99ce8 (patch)
tree739340cf5bde7a0424064018da689dd2c18e5dac /src/projManagement/Validation.py
parent756ad7fcfe3e9cb7f1c90e0c773cfb46243a2496 (diff)
downloadeSim-6e070b2fccfb9142ead325a9f437f28144e99ce8.tar.gz
eSim-6e070b2fccfb9142ead325a9f437f28144e99ce8.tar.bz2
eSim-6e070b2fccfb9142ead325a9f437f28144e99ce8.zip
Subject: Deleted Unwanted file
Description: Deleted unwanted file
Diffstat (limited to 'src/projManagement/Validation.py')
-rw-r--r--src/projManagement/Validation.py6
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