inducer / inducer/pudb

current workdir gets distorted, can't open file

Open
#217 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
3.2k
Forks
245
Avg merge
13m
Merged PRs (30d)
5

Description

Hi, running on Ubuntu 16.10, installed pudb via pip into a python3.6b2 venv.

When I use connexion to start up a webinterface, I give it the name of its config.yaml like so:

app.add_api('myconfig.yaml', argument=...)

running it in python directly or under ipdb works as expected, finding the file in the same dir as the .py file I'm, runnging. But stepping through it in pudb raises an exception at that point:

FileNotFoundError: '[...]/venv3/bin/myconfig.yaml'

So it searches for the file in the venv's bin directory?! PuDB seems to mess up the current working directory of the script running.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue with PuDB and the reported app.add_api('myconfig.yaml') entry point, comparing it with direct Python or ipdb execution. Trace how the current working directory or relative path is resolved; done means myconfig.yaml is found beside the running .py file instead of under venv3/bin.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.