示例#1
0
 def _getWorkingDirectory(self):
     # Get the working directory, and creates it if it doesn't exist.
     parent = os.path.join(os.environ['SHOTS_DIR'], self.name)
     wd = os.path.join(parent, self.shotType)
     if not amu.isVersionedFolder(wd):
         amu.addVersionedFolder(parent, self.shotType, 5) # Good instance of switching to the NewItemDAO when it is appropriate.
     return wd 
示例#2
0
 def _getWorkingDirectory(self):
     # Get the working directory, and creates it if it doesn't exist.
     parent = os.path.join(os.environ['SHOTS_DIR'], self.name)
     wd = os.path.join(parent, self.shotType)
     if not amu.isVersionedFolder(wd):
         amu.addVersionedFolder(
             parent, self.shotType, 5
         )  # Good instance of switching to the NewItemDAO when it is appropriate.
     return wd
 def _getWorkingDirectory(self):
     parent = os.path.join(os.environ['SHOTS_DIR'], self.name)
     wd = os.path.join(parent, self.shotType)
     if not amu.isVersionedFolder(wd):
         amu.addVersionedFolder(parent, self.shotType, 5)
     return wd 
示例#4
0
 def _getWorkingDirectory(self):
     parent = os.path.join(os.environ['SHOTS_DIR'], self.name)
     wd = os.path.join(parent, self.shotType)
     if not amu.isVersionedFolder(wd):
         amu.addVersionedFolder(parent, self.shotType, 5)
     return wd