From 1127550a05e3202f659492f141f1644d6ed0f895 Mon Sep 17 00:00:00 2001 From: Naman Patel Date: Thu, 2 Apr 2026 02:21:45 +0530 Subject: [PATCH] Fix Windows project name validation --- src/projManagement/Validation.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/projManagement/Validation.py b/src/projManagement/Validation.py index 5f239163e..d447ff33c 100644 --- a/src/projManagement/Validation.py +++ b/src/projManagement/Validation.py @@ -67,12 +67,15 @@ def validateNewproj(self, projDir): """ print("Function: Validating New Project Information") + projDir = str(projDir) + projName = os.path.basename(os.path.normpath(projDir)) + # Checking existence of project with same name if os.path.exists(projDir): return "CHECKEXIST" # Project with name already exist else: - # Check Proper name for project. It should not have space - if re.search(r"\s", projDir): + # Check proper project name only, not the full path. + if re.search(r"\s", projName): return "CHECKNAME" else: return "VALID"