Skip to content

Commit c3d66ae

Browse files
committed
allow python symlinks in envs
1 parent 56e4061 commit c3d66ae

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/registry.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ export class Registry implements IRegistry, IDisposable {
167167
}
168168

169169
// discover environments on system
170-
// TODO: rediscover environments in app's envs directory
171170
const pathEnvironments = this._loadPathEnvironments();
172171
const condaEnvironments = this._loadCondaEnvironments();
173172
const allEnvironments = [pathEnvironments, condaEnvironments];
@@ -284,9 +283,7 @@ export class Registry implements IRegistry, IDisposable {
284283
sort?: boolean
285284
): Promise<IPythonEnvironment[]> {
286285
let filteredEnvs = envs.filter(env => this._pathExistsSync(env.path));
287-
const uniqueEnvs = this._getUniqueObjects(filteredEnvs, env => {
288-
return fs.realpathSync(env.path);
289-
});
286+
const uniqueEnvs = this._getUniqueObjects(filteredEnvs);
290287
const resolvedEnvs = await Promise.all(
291288
uniqueEnvs.map(async env => await this._resolveEnvironment(env.path))
292289
);

0 commit comments

Comments
 (0)