question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

configuration for python source files in subfolder

See original GitHub issue

From @kannix on October 27, 2017 13:25

i have a project where all of our code is in a src subfolder. how do i configure vs code and this plugin to correctly handle that?

Copied from original issue: DonJayamanne/pythonVSCode#1348

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
DonJayamannecommented, Nov 14, 2017

From @kannix on October 31, 2017 16:12

okay maybe i made an obvious error: i created a file called .env in the project root with content like this: PYTHONPATH=/Users/kannix/theprojectroot/src and I’m using MacOS

0reactions
brettcannoncommented, Jun 13, 2018

@eiva I think Python will accept that; basically the site module will make all paths absolute to where Python is executed from, so that should be the workspace folder that’s currently open.

Read more comments on GitHub >

github_iconTop Results From Across the Web

configuration for python source files in subfolder #209 - GitHub
i have a project where all of our code is in a src subfolder. how do i configure vs code and this plugin...
Read more >
importing configuration from subfolders - python - Stack Overflow
I am trying to tidy up my configuration file ...
Read more >
Including files in source distributions with MANIFEST.in
The following files are included in a source distribution by default: all Python source files implied by the py_modules and packages setup() arguments....
Read more >
Configuring Project Structure | PyCharm Documentation
In PyCharm, content is a collection of files with which you are currently working, possibly organized in a hierarchy of subfolders.
Read more >
Multi-root Workspaces in Visual Studio Code
The Add Config command will either open an existing launch.json file in the folder's .vscode subfolder or create a new one and display...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found