From d44c24b022e4479050504d231f983f743b2edb0a Mon Sep 17 00:00:00 2001 From: sharon wang Date: Tue, 24 Dec 2024 15:16:51 -0700 Subject: [PATCH 1/2] split dir path with / or \ regardless of the OS --- .../positron-python/src/client/positron/webAppCommands.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extensions/positron-python/src/client/positron/webAppCommands.ts b/extensions/positron-python/src/client/positron/webAppCommands.ts index 309d922ec34..9940c5f6d79 100644 --- a/extensions/positron-python/src/client/positron/webAppCommands.ts +++ b/extensions/positron-python/src/client/positron/webAppCommands.ts @@ -313,8 +313,7 @@ function pathToModule(p: string): string { } // Otherwise, convert the path to a Python module format. - const parts = relativeDir.split(path.sep); - + const parts = relativeDir.split(/[/\\]/); return parts.concat(mod).join('.'); } From 111d6a9ad65f5cb5a939ada3e3543dae8e3eee36 Mon Sep 17 00:00:00 2001 From: sharon wang Date: Tue, 24 Dec 2024 15:17:18 -0700 Subject: [PATCH 2/2] enable Python - Verify Basic FastAPI App [C903306] on Windows --- test/e2e/tests/apps/python-apps.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/e2e/tests/apps/python-apps.test.ts b/test/e2e/tests/apps/python-apps.test.ts index ef065fd96b4..e20229c9e34 100644 --- a/test/e2e/tests/apps/python-apps.test.ts +++ b/test/e2e/tests/apps/python-apps.test.ts @@ -39,7 +39,9 @@ test.describe('Python Applications', { }); }); - test('Python - Verify Basic FastAPI App [C903306]', async function ({ app, python }) { + test('Python - Verify Basic FastAPI App [C903306]', { + tag: [tags.WIN] + }, async function ({ app, python }) { const viewer = app.workbench.viewer; await app.workbench.quickaccess.openFile(join(app.workspacePathOrFolder, 'workspaces', 'python_apps', 'fastapi_example', 'fastapi_example.py'));