File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1
1
import importlib .metadata
2
2
import json
3
3
import os
4
- import warnings
5
4
from copy import copy
6
5
from pathlib import Path
7
6
@@ -78,11 +77,11 @@ def _sorted_merge(*dicts):
78
77
79
78
def _create_global_config (args ):
80
79
username = input (
81
- f"Please enter the name of the user to put in the diffpy global config file "
80
+ f"Please enter the name of the user would want future work to be credited to "
82
81
f"[{ args .get ('username' , '' )} ]: "
83
82
).strip () or args .get ("username" , "" )
84
83
email = input (
85
- f"Please enter the email of the user to put in the diffpy global config file "
84
+ f"Please enter the email of the user "
86
85
f"[{ args .get ('email' , '' )} ]: "
87
86
).strip () or args .get ("email" , "" )
88
87
return_bool = False if username is None or email is None else True
@@ -115,9 +114,8 @@ def get_user_info(args=None):
115
114
global_config = load_config (Path ().home () / "diffpyconfig.json" )
116
115
local_config = load_config (Path ().cwd () / "diffpyconfig.json" )
117
116
if global_config is None and local_config is None :
118
- warnings . warn (
117
+ print (
119
118
"No global config file, please follow prompts below. "
120
- "The global config file is very important in crediting your work in the future. "
121
119
"For more information, please refer to www.diffpy.org/diffpy.utils/examples/toolsexample.html"
122
120
)
123
121
config_bool = _create_global_config (args )
You can’t perform that action at this time.
0 commit comments