Explorar el Código

Merge pull request #264 from lcdevans/master

Fix shortcut target path when using script
Thomas Kluyver hace 1 año
padre
commit
2fac13c326
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      nsist/__init__.py

+ 2 - 1
nsist/__init__.py

@@ -316,8 +316,9 @@ if __name__ == '__main__':
 
                 target = '$INSTDIR\\Python\\python{}.exe'
                 sc['target'] = target.format('' if sc['console'] else 'w')
+                sc['script'] = os.path.basename(sc['script'])
                 sc['parameters'] = '"%s"' % ntpath.join('$INSTDIR', sc['script'])
-                files.add(os.path.basename(sc['script']))
+                files.add(sc['script'])
 
             shutil.copy2(sc['icon'], self.build_dir)
             sc['icon'] = os.path.basename(sc['icon'])