Skip to content
This repository was archived by the owner on Feb 5, 2026. It is now read-only.
This repository was archived by the owner on Feb 5, 2026. It is now read-only.

✨ Allow passing cwd in tool.rye.scripts #930

@jd-solanki

Description

@jd-solanki

Hi πŸ‘‹πŸ»

I'm using tool.rye.scripts for running django server from root of the project and it looks like below:

[tool.rye.scripts]
dev = "python src/django_marketplace/manage.py runserver"

Problem

If I'm already inside src dir and run rye run dev then it gives error due to incorrect dir I'm in.

Solution

Provide cwd option so we can run rye scripts from anywhere in the project

dev = { cmd = "python manage.py runserver", cwd: "src/django_marketplace" }

Another benefit can be cmd option will be much cleaner.

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