프로젝트

일반

사용자정보

개정판 20af735c

ID20af735c384697a3a8693374fc992d09b1d5af31
상위 e9b53088
하위 c0139df3

김정우 이(가) 약 7년 전에 추가함

AppDocData.setCurrentProject 호출 시 Child Directory 생성

차이점 보기:

DTI_PID/DTI_PID/AppDocData.py
365 365
    '''
366 366
    def setCurrentProject(self, project):
367 367
        self.project = project
368

  
368
        self.makeChildDir()
369 369
        try:
370 370
            # Creates or opens a file called mydb with a SQLite3 DB
371 371
            dbPath = self.getCurrentProject().getDbFilePath() + "/ITI_PID.db"
......
395 395
            conn.close()
396 396

  
397 397
    '''
398
        @brief      Make Directory
399
        @author     Jeongwoo
400
        @date       18.05.08
401
    '''
402
    def makeChildDir(self):
403
        project = AppDocData.instance().getCurrentProject()
404
        dbDir = project.getDbFilePath()
405
        if not os.path.exists(dbDir):
406
            os.makedirs(dbDir)
407
        imgDir = project.getImageFilePath()
408
        if not os.path.exists(imgDir):
409
            os.makedirs(imgDir)
410
        svgDir = project.getSvgFilePath()
411
        if not os.path.exists(svgDir):
412
            os.makedirs(svgDir)
413
        outputDir = project.getOutputPath()
414
        if not os.path.exists(outputDir):
415
            os.makedirs(outputDir)
416
        tempDir = project.getTempPath()
417
        if not os.path.exists(tempDir):
418
            os.makedirs(tempDir)
419

  
420
    '''
398 421
        @brief  Get current Project
399 422
    '''
400 423
    def getCurrentProject(self):

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)