[IMPROVEMENT] Support pathlib Path
See original GitHub issueFeature Request
All functions and methods taking a path as argument should support the pathlib Path
type.
pathlib
is the preferred API to handle paths in python 2.7+ (although there is no official PEP8 recommendation). It would be good to at support it and maybe even advertise it in the tutorials to display modern python usage.
The following functions fail when given a Path
argument:
autotvm.callback.log_to_file(filepath)
autotvm.apply_history_best(filepath)
lib.export_library(filepath)
- more ?
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
[IMPROVEMENT] Support pathlib Path · Issue #2222 - GitHub
All functions and methods taking a path as argument should support the pathlib Path type. pathlib is the preferred API to handle paths...
Read more >How to go on with a tiny improvement idea for pathlib?
Hi, I'm new to this forum, so I don't want to spam the ideas discussion right from the start (seeing the complex discussions...
Read more >Using Python's Pathlib Module - Practical Business Python
Pathlib is an object oriented interface to the filesystem and provides a more intuitive method to interact with the filesystem in a platform ......
Read more >How To Use the pathlib Module to Manipulate Filesystem ...
The pathlib module provides several classes, but one of the most important is the Path class. Instances of the Path class represent a...
Read more >Why You Should Start Using Pathlib as an Alternative to the ...
Let's assume you have a Path object that points to a directory. Pathlib allows you to easily iterate over that directory's content and...
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 FreeTop 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
Top GitHub Comments
https://github.com/dmlc/tvm/pull/3968
@cchung100m feel free to take over and send a PR