the working directory is not set as expected for Pyramid debug config
See original GitHub issueEnvironment data
- VS Code version: 1.36
- Extension version (available under the Extensions sidebar): 2019.8.29288
- OS and version: macOS Mojave 10.14.6
- Python version (& distribution if applicable, e.g. Anaconda): 2.7.10
- Type of virtual environment used (N/A | venv | virtualenv | conda | …): virtualenv
- Relevant/affected Python packages and their versions: pyramid 1.5.8
- Jedi or Language Server? (i.e. what is
"python.jediEnabled"
set to; more info #3977): N/A
Expected behaviour
The Pyramid debug config runs with the working directory the same as the entry file. This happens, for example, if we set create the Pyramid debug config with "cwd":"${fileDirName}"
Actual behaviour
Pyramid debug config is created without cwd
set and it appears to default to the parent directory, which causes my pyramid app to be unable to resolve static asset paths.
Steps to reproduce:
- Debug > Add Configuration > Python > Pyramid
Issue Analytics
- State:
- Created 4 years ago
- Comments:24
Top Results From Across the Web
pyramid.config - The Pylons Project
A Configurator is used to configure a Pyramid application registry. ... when using include() , whereas the root_package does not change.
Read more >Run/Debug Configuration: Pyramid Server - PyCharm
Working directory. Specify a directory to be used by the running task. When a default run/debug configuration is created by the keyboard ...
Read more >how to set working directory for debugging a Python program ...
json file, open your project folder in VS Code (File > Open Folder) and then select the Configure gear icon on the Debug...
Read more >Nightwatch Configuration File | Developer Guide
The Nightwatch test runner binary expects a configuration file located in the current working directory. The following is a list of possible file...
Read more >Nixpkgs 22.11 manual - NixOS
nix file, if it is a directory. Because overlays that are set in NixOS configuration do not affect non-NixOS operations such as nix-env...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ajohnstonsm, recreating the pyramid debugging config solved my problem indeed, thanks. Put in a feature request for better user notification of outdated debugging configs
Closing as no further info was provided.