Quellcode durchsuchen

Some debug info (I promise I'll revert it in just a few minutes)

rdb vor 15 Jahren
Ursprung
Commit
f9c1772ef5
2 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen
  1. 0 1
      direct/src/p3d/DeploymentTools.py
  2. 4 1
      direct/src/p3d/Packager.py

+ 0 - 1
direct/src/p3d/DeploymentTools.py

@@ -271,7 +271,6 @@ class Installer:
                 if not archive.exists():
                 if not archive.exists():
                     continue
                     continue
                 
                 
-                print archive
                 mf = Multifile()
                 mf = Multifile()
                 # Make sure that it isn't mounted before altering it, just to be safe
                 # Make sure that it isn't mounted before altering it, just to be safe
                 vfs.unmount(archive)
                 vfs.unmount(archive)

+ 4 - 1
direct/src/p3d/Packager.py

@@ -895,15 +895,18 @@ class Packager:
                     command = 'mt -inputresource:"%s";#%d -out:"%s" > nul' % (
                     command = 'mt -inputresource:"%s";#%d -out:"%s" > nul' % (
                         file.filename.toOsSpecific(),
                         file.filename.toOsSpecific(),
                         resindex, tempFile.toOsSpecific())
                         resindex, tempFile.toOsSpecific())
+                    print command
                     try:
                     try:
                         out = os.system(command)
                         out = os.system(command)
                     except:
                     except:
+                        print "failed"
                         pass
                         pass
                     afilenames = None
                     afilenames = None
 
 
                     if tempFile.exists():
                     if tempFile.exists():
                         afilenames = self.__parseManifest(tempFile)
                         afilenames = self.__parseManifest(tempFile)
-                        tempFile.unlink()
+                        print tempFile
+                        #tempFile.unlink()
 
 
                     # Also check for an explicit private-assembly
                     # Also check for an explicit private-assembly
                     # manifest file on disk.
                     # manifest file on disk.