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 3
3
import os
4
4
from copy import copy
5
5
from pathlib import Path
6
+ import warnings
6
7
7
8
8
9
def clean_dict (obj ):
@@ -114,6 +115,7 @@ def get_user_info(args=None):
114
115
global_config = load_config (Path ().home () / "diffpyconfig.json" )
115
116
local_config = load_config (Path ().cwd () / "diffpyconfig.json" )
116
117
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/" )
117
119
config_bool = _create_global_config (args )
118
120
global_config = load_config (Path ().home () / "diffpyconfig.json" )
119
121
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