Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1fa6a77

Browse files
hoodmanemkoeppe
authored andcommitted
IPython/utils/_process_emscripten.py: New
1 parent b1a304c commit 1fa6a77

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
def system(cmd):
2+
raise OSError("Not available")
3+
4+
def getoutput(cmd):
5+
raise OSError("Not available")
6+
7+
def check_pid(cmd):
8+
raise OSError("Not available")
9+
10+
def arg_split(s, posix=False, strict=True):
11+
"""This one could be made to work but it's not clear if it would be useful..."""
12+
raise OSError("Not available")

IPython/utils/process.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
from ._process_win32 import system, getoutput, arg_split, check_pid
1616
elif sys.platform == 'cli':
1717
from ._process_cli import system, getoutput, arg_split, check_pid
18+
elif sys.platform == "emscripten":
19+
from ._process_emscripten import system, getoutput, arg_split, check_pid
1820
else:
1921
from ._process_posix import system, getoutput, arg_split, check_pid
2022

0 commit comments

Comments
 (0)