mirror of
https://github.com/niess/python-appimage.git
synced 2026-03-14 04:10:15 +01:00
Patch _initappimage for 3.11
This commit is contained in:
@@ -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"]
|
||||
Reference in New Issue
Block a user