summaryrefslogtreecommitdiff
path: root/src/projManagement/Validation.py
diff options
context:
space:
mode:
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