Patch _initappimage for 3.11

This commit is contained in:
Valentin Niess
2022-06-11 21:17:35 +02:00
parent 1367498e1e
commit 482bc66722
2 changed files with 31 additions and 14 deletions

View File

@@ -1,6 +1,9 @@
# This is a site.py patch when calling Python from an AppImage.
# This is a patch to getpath. It must execute before site.main() is called
def _initappimage():
"""Initialise executable name for running from an AppImage."""
"""Initialise executable name when running from an AppImage."""
import os
import sys
env = os.environ
try:
command = env["APPIMAGE_COMMAND"]