Skip to content

Commit

Permalink
Fix sep
Browse files Browse the repository at this point in the history
  • Loading branch information
karthiknadig committed Nov 4, 2024
1 parent fe09e8b commit 6cdda40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/common/settings.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

import * as path from 'path';
import { ConfigurationChangeEvent, ConfigurationScope, WorkspaceConfiguration, WorkspaceFolder } from 'vscode';
import { traceLog, traceWarn } from './logging';
import { getInterpreterDetails } from './python';
Expand Down Expand Up @@ -42,7 +43,7 @@ function resolveVariables(
const home = process.env.HOME || process.env.USERPROFILE;
if (home) {
substitutions.set('${userHome}', home);
substitutions.set('~/', home);
substitutions.set(`~${path.sep}`, `${home}${path.sep}`);
}
if (workspace) {
substitutions.set('${workspaceFolder}', workspace.uri.fsPath);
Expand Down

0 comments on commit 6cdda40

Please sign in to comment.