module win_installer.win_patch
¶
Short summary¶
module pymyinstall.win_installer.win_patch
Patch the distribution to make it portable
Classes¶
class |
truncated documentation |
---|---|
exception raised when the shebang is not correct |
Functions¶
function |
truncated documentation |
---|---|
Paths are absolute when they are installed in all scripts .exe, we replaced them either by an empty string ( |
Documentation¶
Patch the distribution to make it portable
- exception pymyinstall.win_installer.win_patch.ShebangException¶
Bases:
RuntimeError
exception raised when the shebang is not correct
- pymyinstall.win_installer.win_patch.win_patch_paths(folder, path_to_python='', fLOG=<built-in function print>)¶
Paths are absolute when they are installed in all scripts .exe, we replaced them either by an empty string (
path_to_python == ""
) or the current folder.- Parameters:
folder – folder where to find the executable
path_to_python – new python path (replace by)
fLOG – logging function
- Returns:
list of tuple (‘exe or py’, ‘modified file’)
See Create a portable Python with Pip on Windows The first three parameters can be environment variables. They will be replaced by their values.