mirror of
https://github.com/niess/python-appimage.git
synced 2026-03-14 04:10:15 +01:00
Add documentation with mkdocs
This commit is contained in:
@@ -63,7 +63,12 @@ def patch_pip_install():
|
||||
shebang = shebang.split()
|
||||
python_x_y = os.path.basename(shebang.pop(0))
|
||||
if not python_x_y.startswith('python'):
|
||||
continue
|
||||
head, altbody = body.split(os.linesep, 1)
|
||||
if head.startswith("'''exec' /"): # Patch for alt shebang
|
||||
body = altbody.split(os.linesep, 1)[1]
|
||||
python_x_y = os.path.basename(head.split()[1])
|
||||
else:
|
||||
continue
|
||||
|
||||
relpath = os.path.relpath(
|
||||
sys.prefix + '/../../usr/bin/' + python_x_y,
|
||||
|
||||
Reference in New Issue
Block a user