NVIDIA / NVIDIA/cuda-python

Migrate from os.path to pathlib.Path

Open
#2,410 7 comments 0 reactions 2 assignees View on GitHub

@mdboom is already working on this.

Since Aug 7, 2026.

cuda.bindings cuda.core cuda.pathfinder enhancement
Dominant language
Cython
Stars
3.4k
Forks
329
Avg merge
1d 23h
Merged PRs (30d)
116

Description

os.path is an old API that is soft-deprecated in favor of the type-safe pathlib.Path API.

We should migrate to using pathlib.Path everywhere internally, with care being take to ensure that we still accept strings everywhere we currently do so as not to break public API.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.