From afb7f3c5be3ed9974ad5d539e4aac3e5de823ce2 Mon Sep 17 00:00:00 2001 From: Anya Wallace Date: Tue, 21 May 2024 19:13:30 -0700 Subject: [PATCH] Account for web in OS check --- packages/core/entity/FileExplorerURL/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core/entity/FileExplorerURL/index.ts b/packages/core/entity/FileExplorerURL/index.ts index 6baaa56c1..679ed3016 100644 --- a/packages/core/entity/FileExplorerURL/index.ts +++ b/packages/core/entity/FileExplorerURL/index.ts @@ -192,7 +192,8 @@ export default class FileExplorerURL { } private static convertDataSourceToPython(source: Source | undefined, userOS: string) { - const rawFlagForWindows = userOS === "Windows_NT" ? "r" : ""; + const isUsingWindowsOS = userOS === "Windows_NT" || userOS.includes("Windows NT"); + const rawFlagForWindows = isUsingWindowsOS ? "r" : ""; if (typeof source?.uri === "string") { const comment = "#Convert current datasource file to a pandas dataframe";