From 1fa6a775688f4f4df82da8dd488763b48798e2c1 2024-01-31 18:16:22 From: Hood Chatham Date: 2024-01-31 18:16:22 Subject: [PATCH] IPython/utils/_process_emscripten.py: New --- diff --git a/IPython/utils/_process_emscripten.py b/IPython/utils/_process_emscripten.py new file mode 100644 index 0000000..6853dc1 --- /dev/null +++ b/IPython/utils/_process_emscripten.py @@ -0,0 +1,12 @@ +def system(cmd): + raise OSError("Not available") + +def getoutput(cmd): + raise OSError("Not available") + +def check_pid(cmd): + raise OSError("Not available") + +def arg_split(s, posix=False, strict=True): + """This one could be made to work but it's not clear if it would be useful...""" + raise OSError("Not available") diff --git a/IPython/utils/process.py b/IPython/utils/process.py index 489b7c1..f50cf9b 100644 --- a/IPython/utils/process.py +++ b/IPython/utils/process.py @@ -15,6 +15,8 @@ if sys.platform == 'win32': from ._process_win32 import system, getoutput, arg_split, check_pid elif sys.platform == 'cli': from ._process_cli import system, getoutput, arg_split, check_pid +elif sys.platform == "emscripten": + from ._process_emscripten import system, getoutput, arg_split, check_pid else: from ._process_posix import system, getoutput, arg_split, check_pid