Esempio n. 1
0
 def modularize(self):
     sep = PlatformProperty.FileSep
     modDir = self.ProjectBaseDir+'app'+sep+'modules'
     modTestDir = self.ProjectBaseDir+'test'+sep+'app'+sep+'modules'
     if not FileUtils.dirExists(modDir):
         FileUtils.createDir(modDir)
     if not FileUtils.dirExists(modTestDir):
         FileUtils.createDir(modTestDir)
Esempio n. 2
0
 def __validate(self):
     if not FileUtils.dirExists(self.ModuleBaseDir):
         message = """ It does not appear you are in your project directory.  This command must be run from within your project directory.
         If you are inside your project directory, then you are getting this error because your project was not initialized as modular. To
         make it modular.  Navigate to your project base directory and run the following:
         
         pylegos project modularize --name <project name>
         
         """
         raise RuntimeError(message)
Esempio n. 3
0
 def __validate(self):
     if FileUtils.dirExists(self.ProjectName):
         raise RuntimeError('A project by that name already exists')