@scrypted/server 0.27.0 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of @scrypted/server might be problematic. Click here for more details.
package/package.json
CHANGED
package/python/plugin_remote.py
CHANGED
@@ -625,8 +625,15 @@ class PluginRemote:
|
|
625
625
|
|
626
626
|
sys.path.insert(0, zipPath)
|
627
627
|
if platform.system() != 'Windows':
|
628
|
-
|
629
|
-
|
628
|
+
# local/lib/dist-packages seen on python3.10 on ubuntu.
|
629
|
+
# TODO: find a way to programatically get this value, or switch to venv.
|
630
|
+
dist_packages = os.path.join(
|
631
|
+
python_prefix, 'local', 'lib', python_version, 'dist-packages')
|
632
|
+
if os.path.exists(dist_packages):
|
633
|
+
site_packages = dist_packages
|
634
|
+
else:
|
635
|
+
site_packages = os.path.join(
|
636
|
+
python_prefix, 'lib', python_version, 'site-packages')
|
630
637
|
else:
|
631
638
|
site_packages = os.path.join(
|
632
639
|
python_prefix, 'Lib', 'site-packages')
|
@@ -15,7 +15,7 @@ export class ServiceControl {
|
|
15
15
|
process.exit();
|
16
16
|
}
|
17
17
|
|
18
|
-
async getUpdateAvailable(): Promise<
|
18
|
+
async getUpdateAvailable(): Promise<string> {
|
19
19
|
throw new Error('getUpdateAvailable is not implemented. Updates will come out of band through Docker or npm.');
|
20
20
|
}
|
21
21
|
|