From 44af4ce006b162de18863768f4431f4cee63bad5 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Thu, 16 Feb 2023 23:26:59 -0800 Subject: [PATCH] server: rename to plugin_remote.py --- server/python/plugin-repl.py | 9 --------- server/python/{plugin-remote.py => plugin_remote.py} | 0 server/src/plugin/runtime/python-worker.ts | 2 +- 3 files changed, 1 insertion(+), 10 deletions(-) delete mode 100644 server/python/plugin-repl.py rename server/python/{plugin-remote.py => plugin_remote.py} (100%) diff --git a/server/python/plugin-repl.py b/server/python/plugin-repl.py deleted file mode 100644 index c95be467a..000000000 --- a/server/python/plugin-repl.py +++ /dev/null @@ -1,9 +0,0 @@ -from asyncore import write -import code - -class ScryptedConsole(code.InteractiveConsole): - def write(self, data: str) -> None: - return super().write(data) - - def raw_input(self, prompt: str) -> str: - return super().raw_input(prompt=prompt) diff --git a/server/python/plugin-remote.py b/server/python/plugin_remote.py similarity index 100% rename from server/python/plugin-remote.py rename to server/python/plugin_remote.py diff --git a/server/src/plugin/runtime/python-worker.ts b/server/src/plugin/runtime/python-worker.ts index af099537a..8c53ab05e 100644 --- a/server/src/plugin/runtime/python-worker.ts +++ b/server/src/plugin/runtime/python-worker.ts @@ -28,7 +28,7 @@ export class PythonRuntimeWorker extends ChildProcessWorker { ) } args.push( - path.join(__dirname, '../../../python', 'plugin-remote.py'), + path.join(__dirname, '../../../python', 'plugin_remote.py'), ) const gstEnv: NodeJS.ProcessEnv = {};