mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 19:09:44 +00:00
refactoring
This commit is contained in:
@@ -154,6 +154,7 @@ class Options(AttrMonitor):
|
|||||||
if ENV_NODEBUG in os.environ:
|
if ENV_NODEBUG in os.environ:
|
||||||
# force disabling debugs
|
# force disabling debugs
|
||||||
self.debug = False
|
self.debug = False
|
||||||
|
# selected profile
|
||||||
self.profile = self.args['--profile']
|
self.profile = self.args['--profile']
|
||||||
self.confpath = self._get_config_path()
|
self.confpath = self._get_config_path()
|
||||||
if not self.confpath:
|
if not self.confpath:
|
||||||
@@ -393,11 +394,11 @@ class Options(AttrMonitor):
|
|||||||
|
|
||||||
def _fill_attr(self):
|
def _fill_attr(self):
|
||||||
"""create attributes from conf"""
|
"""create attributes from conf"""
|
||||||
# variables
|
# defined variables
|
||||||
self.variables = self.conf.get_variables()
|
self.variables = self.conf.get_variables()
|
||||||
# the dotfiles
|
# dotfiles for this profile
|
||||||
self.dotfiles = self.conf.get_dotfiles()
|
self.dotfiles = self.conf.get_dotfiles(profile_key=self.profile)
|
||||||
# the profiles
|
# all defined profiles
|
||||||
self.profiles = self.conf.get_profiles()
|
self.profiles = self.conf.get_profiles()
|
||||||
|
|
||||||
def _debug_attr(self):
|
def _debug_attr(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user