Changeset 515

Show
Ignore:
Timestamp:
Mon Aug 4 12:05:53 2008
Author:
htgoebel
Message:

Need to create multiple levels of directories if requested.

Files:

Legend:

Unmodified
Added
Removed
Modified
  • trunk/Build.py

    r511 r515  
    619 619         print "building EXE from", os.path.basename(self.out)  
    620 620         trash = []  
      621         if not os.path.exists(os.path.dirname(self.name)):  
      622             os.makedirs(os.path.dirname(self.name))  
    621 623         outf = open(self.name, 'wb')  
    622 624         exe = self._bootloader_postfix('support/loader/run')  
     
    730 732         print "building COLLECT", os.path.basename(self.out)  
    731 733         if not os.path.exists(self.name):  
    732               os.mkdir(self.name)  
      734             os.makedirs(self.name)  
    732 734         toc = TOC()  
    733 735         for inm, fnm, typ in self.toc:  
     
    909 911         SPECPATH = os.getcwd()  
    910 912     WARNFILE = os.path.join(SPECPATH, 'warn%s.txt' % specnm)  
    911       BUILDPATH = os.path.join(SPECPATH,  
    912                         "build/pyi.%s/%s" % (config['target_platform'], specnm))  
      913     BUILDPATH = os.path.join(SPECPATH, 'build',  
      914                              "pyi." + config['target_platform'], specnm)  
    913 915     if '-o' in sys.argv:  
    914 916         bpath = sys.argv[sys.argv.index('-o')+1]  
     
    918 920             BUILDPATH = os.path.join(SPECPATH, bpath)  
    919 921     if not os.path.exists(BUILDPATH):  
    920           os.mkdir(BUILDPATH)  
      922         os.makedirs(BUILDPATH)  
    920 922     execfile(spec)  
    921 923