@@ -68,7 +68,7 @@ def __str__(self):
68
68
output = self .info (as_str = True )
69
69
return output .replace ("CleverDict" , type (self ).__name__ , 1 )
70
70
71
- def save (self , key = None , value = None ):
71
+ def save (self , name = None , value = None ):
72
72
"""
73
73
This method is called by CleverDict whenever a value or attribute
74
74
changes. Used here to update the config file automatically.
@@ -96,8 +96,8 @@ def save(self, key=None, value=None):
96
96
if "password" not in x .lower ()
97
97
}
98
98
json .dump (fields_dict , file , indent = 4 )
99
- if key :
100
- if "password" in key .lower ():
99
+ if name :
100
+ if "password" in name .lower ():
101
101
location = "memory but NOT saved to file"
102
102
else :
103
103
location = self .__class__ .config_filepath
@@ -771,6 +771,7 @@ def create_essential_files(self):
771
771
sfp = self .setup_filepath .parent
772
772
# setup.py and LICENSE can be be overwritten as they're most likely to
773
773
# be changed by user after publishing, and no code changes will be lost:
774
+ print (self .license_text )
774
775
create_file (sfp / "LICENSE" , self .license_text , overwrite = True )
775
776
create_file (self .setup_filepath , self .script_lines , overwrite = True )
776
777
# Other files are just bare-bones initially, imported from templates:
0 commit comments