Add support for pathlib
See original GitHub issueIt would be nice to add support pathlib
, as others (such as NumPy or PIL) do. Converting all input path arguments to str
would probably be enough.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:5 (1 by maintainers)
Top Results From Across the Web
pathlib — Object-oriented filesystem paths — Python 3.11.1 ...
Source code: Lib/pathlib.py This module offers classes representing filesystem paths with semantics appropriate for different operating systems.
Read more >Add support for pathlib.Path type #97 - omry/omegaconf - GitHub
Once stronger typing is implemented in the library, consider adding support for the pathlib.Path type. Motivation: paths are often found in ...
Read more >Python 3's pathlib Module: Taming the File System
In this tutorial, you will see how to work with file paths—names of directories and files—in Python. You will learn new ways to...
Read more >Add support for pathlib.Path objects to arcpy - Esri Community
pathlib seems to be the preferred method for working with system paths in Python 3. We've started using it in place of `os.path`...
Read more >Python Path – How to Use the Pathlib Module with Examples
Also, it provides functionalities and operations to help you save time while ... It inherits manipulation from the parent class and adds ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Update : I was able to use
pathlib
with just theas_posix()
method :Done in #1137. At the moment, moviepy just converts the path object to a string as soon as it receives it. In the future it would be nice if it internally used Path objects until as late as possible down the pipeline, but that would require a larger rewrite which seems unnecessary seeing as it works fine currently.