Skip to content

Commit

Permalink
Account for web in OS check
Browse files Browse the repository at this point in the history
  • Loading branch information
aswallace committed May 22, 2024
1 parent 9b14578 commit afb7f3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/entity/FileExplorerURL/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit afb7f3c

Please sign in to comment.