Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(3)  |  Derive(0)  |  Import(1)

        def createDir(dir):
    if not os.path.exists(dir):
        try:
            os.makedirs(dir)
        except : pass
        


src/a/i/AIGO-0.1.0/AIGO/gui/main.py   AIGO(Download)
from AIGO.go.OBO                  import readGOoboXML
 
from AIGO.utils.File              import createDir
from AIGO.utils.Execute           import batchExecute
 
def createPlotFA(project):
    if not project.has_key('plotFA'):
        outDir="%s/Graph" % (project['directory'])
        createDir(outDir)
        project['plotFA']=PlotFA(xlabel="Functional Annotation", outDir=outDir, name=project['name'], organism=project['organism'], grid=True)
    def OnStatExport(self, event):
 
        if not self.project.has_key('exportFA'):
            outDir="%s/Export" % (self.project['directory'])
            createDir(outDir)
 
        outDir="%s/Annotation" % (self.project['directory'])
        createDir(outDir)
 
        gp=lst.GetItem(current,0).GetText()