Reputation: 11
How do I convert a string
into path
objects?? Or how could I make path
objects in python?
For example:
I need to use path
objects in these:
os.listdir(path)
os.chroot(path)
Upvotes: 1
Views: 4515
Reputation: 527488
Both of those functions take string arguments. "path" there is simply the name of the argument.
Upvotes: 2