Skip to main content
Stack Overflow
  1. About
  2. For Teams

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Draft saved
Draft discarded
Cancel
4
  • path.path(config_string) Commented Sep 30, 2014 at 15:17
  • 6
    What is path.path? Sounds like a class that is defined by the code you are using; it's not a standard type or class. Prior to Python 3.4, there was no standard for paths; functions operating on paths just used the string representation. Python 3.4 introduced the pathlib module, which provides proper objects to represent paths. Commented Sep 30, 2014 at 15:22
  • When I run type(file_path), I get <class 'path.path'> as a response. There is a from path import path line at the top of my file. I'm assuming this is just os.path, but I'm new to this, and the guy who wrote this tool left the company. Commented Sep 30, 2014 at 15:47
  • It's not os.path which is a module in the standard library, so it must be something else. After the import, see what help(path) says — there may be something that does what you want. Commented Jul 22, 2021 at 18:07

lang-py

AltStyle によって変換されたページ (->オリジナル) /