diff --git a/dotdrop/config.py b/dotdrop/config.py index 4b6c60a..ba1c7db 100644 --- a/dotdrop/config.py +++ b/dotdrop/config.py @@ -5,7 +5,7 @@ Copyright (c) 2024, deadc0de6 default config """ -default_config = """config: +DEFAULT_CONFIG = """config: backup: true banner: true create: true @@ -15,4 +15,4 @@ default_config = """config: link_on_import: nolink longkey: false dotfiles: -profiles:""" \ No newline at end of file +profiles:""" diff --git a/dotdrop/options.py b/dotdrop/options.py index 8143572..c4fe301 100644 --- a/dotdrop/options.py +++ b/dotdrop/options.py @@ -21,7 +21,7 @@ from dotdrop.cfg_aggregator import CfgAggregator from dotdrop.action import Action from dotdrop.utils import uniq_list, debug_list, debug_dict from dotdrop.exceptions import YamlException, OptionsException -from dotdrop.config import default_config +from dotdrop.config import DEFAULT_CONFIG ENV_PROFILE = 'DOTDROP_PROFILE' ENV_CONFIG = 'DOTDROP_CONFIG' @@ -153,7 +153,7 @@ class Options(AttrMonitor): if self.args['gencfg']: # print config and exit - print(default_config) + print(DEFAULT_CONFIG) sys.exit(0) if args: