We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56c2728 commit 9a594d3Copy full SHA for 9a594d3
testing/install_pyodide_libs.py
@@ -11,7 +11,7 @@
11
PY_FILES_DIR = os.path.join(PARENT_DIR, 'py_files')
12
SKIP_FILES = [
13
'short_path.py',
14
- 'inflation_history.py'
+ 'inflation_history.py',
15
]
16
17
def get_imported_libraries(file_path):
@@ -68,4 +68,10 @@ async def main():
68
69
70
if __name__ == '__main__':
71
- asyncio.run(main())
+ try:
72
+ # Check if running inside an existing event loop
73
+ loop = asyncio.get_running_loop()
74
+ asyncio.ensure_future(main())
75
+ except RuntimeError:
76
+ # No running event loop, safe to use asyncio.run()
77
+ asyncio.run(main())
0 commit comments