diff options
Diffstat (limited to 'src/projManagement/Validation.py')
-rw-r--r-- | src/projManagement/Validation.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/projManagement/Validation.py b/src/projManagement/Validation.py index 18b8a0aa..5f239163 100644 --- a/src/projManagement/Validation.py +++ b/src/projManagement/Validation.py @@ -61,8 +61,8 @@ class Validation: :projDir => Contains path of the new projDir created @return - :"CHECKEXIST" => If same project name folder exists - :"CHECKNAME" => If space is there in project name + :"CHECKEXIST" => If smae project name folder exists + :"CHECKNAME" => If space is there in name :"VALID" => If valid project name given """ print("Function: Validating New Project Information") @@ -72,9 +72,7 @@ class Validation: return "CHECKEXIST" # Project with name already exist else: # Check Proper name for project. It should not have space - # Extract only the project name (basename) from the full path - projName = os.path.basename(projDir) - if re.search(r"\s", projName): + if re.search(r"\s", projDir): return "CHECKNAME" else: return "VALID" |