Path¶
-
class
ostools.
Path
(envvar='PATH')[source]¶ This is a class for working with PATHs, like PATH or MANPATH.
It has the interface of a list. It loads the initial list from an environment variable, and converts each element into a
FilePath
, withexist_required
set to false.-
append
(item)[source]¶ This function functions like
list.append()
. It also converts theitem
into aFilePath
, withexist_required
set to false.
-
extend
(items)[source]¶ This function functions like
list.extend()
. It also converts each item into aFilePath
, withexist_required
set to false.
-