3 from argparse
import Namespace
8 Contextual data and information for plugins.
11 def __init__(self
, base_directory
, options
=Namespace()):
12 self
._base
_directory
= base_directory
14 self
._options
= options
17 def set_base_directory(self
, base_directory
):
18 self
._base
_directory
= base_directory
20 def base_directory(self
, canonical_path
=True):
21 base_directory
= self
._base
_directory
23 base_directory
= os
.path
.realpath(base_directory
)
26 def set_defaults(self
, defaults
):
27 self
._defaults
= defaults
30 return copy
.deepcopy(self
._defaults
)
33 return copy
.deepcopy(self
._options
)