File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed
Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 1+ **Added: **
2+
3+ * Warning message for missing global config file
4+
5+ **Changed: **
6+
7+ * <news item>
8+
9+ **Deprecated: **
10+
11+ * <news item>
12+
13+ **Removed: **
14+
15+ * <news item>
16+
17+ **Fixed: **
18+
19+ * <news item>
20+
21+ **Security: **
22+
23+ * <news item>
Original file line number Diff line number Diff line change 33import os
44from copy import copy
55from pathlib import Path
6+ import warnings
67
78
89def clean_dict (obj ):
@@ -114,6 +115,7 @@ def get_user_info(args=None):
114115 global_config = load_config (Path ().home () / "diffpyconfig.json" )
115116 local_config = load_config (Path ().cwd () / "diffpyconfig.json" )
116117 if global_config is None and local_config is None :
118+ warnings .warn ("No global config file, please follow prompts below. For more information, refer to www.diffpy.org/diffpy.utils/" )
117119 config_bool = _create_global_config (args )
118120 global_config = load_config (Path ().home () / "diffpyconfig.json" )
119121 config = _sorted_merge (clean_dict (global_config ), clean_dict (local_config ), clean_dict (args ))
You can’t perform that action at this time.
0 commit comments