@scrypted/server 0.7.38 → 0.7.39
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 +1 -1
- package/python/plugin_remote.py +12 -1
package/package.json
CHANGED
package/python/plugin_remote.py
CHANGED
@@ -423,7 +423,18 @@ class PluginRemote:
|
|
423
423
|
pass
|
424
424
|
|
425
425
|
if need_pip:
|
426
|
-
|
426
|
+
try:
|
427
|
+
for de in os.listdir(plugin_volume):
|
428
|
+
if de.startswith('linux') or de.startswith('darwin') or de.startswith('win32') or de.startswith('python') or de.startswith('node'):
|
429
|
+
filePath = os.path.join(plugin_volume, de)
|
430
|
+
print('Removing old dependencies: %s' % filePath)
|
431
|
+
try:
|
432
|
+
shutil.rmtree(filePath)
|
433
|
+
except:
|
434
|
+
pass
|
435
|
+
except:
|
436
|
+
pass
|
437
|
+
|
427
438
|
os.makedirs(python_prefix)
|
428
439
|
|
429
440
|
print('requirements.txt (outdated)')
|