diff options
| author | marios8543 <marios8543@gmail.com> | 2023-10-27 00:42:10 +0300 |
|---|---|---|
| committer | marios8543 <marios8543@gmail.com> | 2023-10-27 00:42:10 +0300 |
| commit | d00506d141eb940e6e6c0e2d2cf8b558070f8d7a (patch) | |
| tree | 572d545021492482eb805fa297ce3349020b94f2 /backend | |
| parent | ffe9cd8afe9643c8d7b5e38c39fbe00847ed08e4 (diff) | |
| download | decky-loader-d00506d141eb940e6e6c0e2d2cf8b558070f8d7a.tar.gz decky-loader-d00506d141eb940e6e6c0e2d2cf8b558070f8d7a.zip | |
fix decky imports from pluginsv2.10.7-pre1
Diffstat (limited to 'backend')
| -rw-r--r-- | backend/src/plugin.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/backend/src/plugin.py b/backend/src/plugin.py index 163bb9b6..3d5d95db 100644 --- a/backend/src/plugin.py +++ b/backend/src/plugin.py @@ -7,7 +7,7 @@ from logging import getLogger from traceback import format_exc from os import path, environ from signal import SIGINT, signal -from sys import exit, path as syspath +from sys import exit, path as syspath, modules as sysmodules from typing import Any, Dict from .localsocket import LocalSocket from .localplatform import setgid, setuid, get_username, get_home_path @@ -78,6 +78,9 @@ class PluginWrapper: # append the plugin's `py_modules` to the recognized python paths syspath.append(path.join(environ["DECKY_PLUGIN_DIR"], "py_modules")) + + #TODO: FIX IN A LESS CURSED WAY + sysmodules.update(sysmodules["src"].__dict__) spec = spec_from_file_location("_", self.file) assert spec is not None |
