Skip to content

Commit

Permalink
Autoformat venv locator
Browse files Browse the repository at this point in the history
  • Loading branch information
kimadeline committed Sep 21, 2020
1 parent 557249b commit 5c8c4ab
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
import * as path from 'path';
import { pathExists } from '../../../common/externalDependencies';


/**
* Checks if the given interpreter belongs to a venv based environment.
* @param {string} interpreterPath: Absolute path to the python interpreter.
* @returns {boolean} : Returns true if the interpreter belongs to a venv environment.
*/
export async function isVenvEnvironment(interpreterPath:string): Promise<boolean>{
export async function isVenvEnvironment(interpreterPath:string): Promise<boolean> {
const pyvenvConfigFile = 'pyvenv.cfg';

// Check if the pyvenv.cfg file is in the directory as the interpreter.
Expand Down

0 comments on commit 5c8c4ab

Please sign in to comment.