Skip to content

VS code debugger doesn't load /opt/continuum/project into sys.path #24

@saraneem

Description

@saraneem

From European Investment Bank:

When we try to use the vs code debugger for a file located in a subfolder, /opt/continuum/project isn't loaded into sys.path. This means that the local import doesn't work.

Here is a concrete example:

In /opt/continuum/project I create a file test.py and I create a function 'func' in it.
Then I create a folder, with an init.py file and another file 'test2.py'. If I try to import "from test import func", it will fail if I try to debug the file.

It works well if we use conda develop /opt/continuum/project but this configuration can't be saved.

ZD ticket: https://anaconda.zendesk.com/agent/tickets/21015

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions