[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools: using path in chdir #5637

Merged
merged 1 commit into from
Jul 30, 2024
Merged

tools: using path in chdir #5637

merged 1 commit into from
Jul 30, 2024

Conversation

anki-code
Copy link
Member
@anki-code anki-code commented Jul 30, 2024

Motivation

Using pathlib.Path in chdir allows to do expanding automatically.

Before

from xonsh.tools import chdir

with chdir('~/.local'):
    echo 1

# No such file or dir '~/.local'

After

from xonsh.tools import chdir

with chdir('~/.local'):
    echo 1

# 1

For community

⬇️ Please click the 👍 reaction instead of leaving a +1 or 👍 comment

Copy link

Warning! No news item is found for this PR.
If this is an user facing change/feature/fix, please add a news item by copying the format from news/TEMPLATE.rst.

@anki-code anki-code marked this pull request as ready for review July 30, 2024 13:04
@anki-code anki-code merged commit 086476b into main Jul 30, 2024
12 checks passed
@anki-code anki-code deleted the chdir_path branch July 31, 2024 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants