def setup(self): fileName = os.path.join(self.details.topLevelDir, 'matdoc.pm') if os.path.isfile(fileName): return # nothing to do, maintainer made custom one username = FastScript.getCurrentUserFullName() content = '# matdoc configuration file auto-generated by ToolBOSCore\n\n' + \ '# directories to exclude\n' + \ '@Exclude = qw(doc lib obj install test);\n\n' + \ '# project maintainer(s)\n' + \ ( "@Maintainers = ( '%s' );\n\n" % username ) + \ '# create doc index for each subdirectory?\n' + \ '$Separate = 0;\n\n' FastScript.setFileContent(fileName, content)
def _retrieveCurrentUser(self): self.userAccount = FastScript.getCurrentUserName() self.userName = FastScript.getCurrentUserFullName() if not self.userName: self.userName = self.userAccount