1010from pathlib import Path
1111from urllib .parse import urlparse
1212
13- from openml import config
13+ import openml
1414from openml .__version__ import __version__
1515
1616
@@ -60,17 +60,17 @@ def wait_until_valid_input(
6060
6161
6262def print_configuration () -> None :
63- file = config .determine_config_file_path ()
63+ file = openml . config .determine_config_file_path ()
6464 header = f"File '{ file } ' contains (or defaults to):"
6565 print (header )
6666
67- max_key_length = max (map (len , config .get_config_as_dict ()))
68- for field , value in config .get_config_as_dict ().items ():
67+ max_key_length = max (map (len , openml . config .get_config_as_dict ()))
68+ for field , value in openml . config .get_config_as_dict ().items ():
6969 print (f"{ field .ljust (max_key_length )} : { value } " )
7070
7171
7272def verbose_set (field : str , value : str ) -> None :
73- config .set_field_in_config_file (field , value )
73+ openml . config .set_field_in_config_file (field , value )
7474 print (f"{ field } set to '{ value } '." )
7575
7676
@@ -83,7 +83,7 @@ def check_apikey(apikey: str) -> str:
8383 return ""
8484
8585 instructions = (
86- f"Your current API key is set to: '{ config .apikey } '. "
86+ f"Your current API key is set to: '{ openml . config .apikey } '. "
8787 "You can get an API key at https://new.openml.org. "
8888 "You must create an account if you don't have one yet:\n "
8989 " 1. Log in with the account.\n "
@@ -349,7 +349,7 @@ def main() -> None:
349349 )
350350
351351 configurable_fields = [
352- f .name for f in fields (config .OpenMLConfig ) if f .name not in ["max_retries" ]
352+ f .name for f in fields (openml . _config .OpenMLConfig ) if f .name not in ["max_retries" ]
353353 ]
354354
355355 parser_configure .add_argument (
0 commit comments