Skip to content

Use pathlib instead of os.path #343

@pranasziaukas

Description

@pranasziaukas

import os.path as Path

Starting with python 3.4, pathlib became - to the best of my knowledge - the de facto way of handling paths in an object-oriented way.

While we will not be able to simply replace the above with

from pathlib import Path

without breaking anything, there is a somewhat of an official migration guide at https://docs.python.org/3/library/pathlib.html#correspondence-to-tools-in-the-os-module

Originally posted by @pranasziaukas in #326 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions