Skip to content

Commit 23fec56

Browse files
authored
Merge pull request #770 from jupyterlab/allow-python-symlinks-in-envs
allow python symlinks in environments
2 parents 56e4061 + c3d66ae commit 23fec56

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)