Skip to content

Commit 5b56127

Browse files
joaquinvanschorenmfeurer
authored andcommitted
Fixes a bug that prevents openml from finding the config file (#651)
* Fixes a bug that prevents openml from finding the config file * add mini test
1 parent 8cc1436 commit 5b56127

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

openml/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
'connection_n_retries': 2,
2525
}
2626

27-
config_file = os.path.expanduser(os.path.join('~', '.openml' 'config'))
27+
config_file = os.path.expanduser(os.path.join('~', '.openml', 'config'))
2828

2929
# Default values are actually added here in the _setup() function which is
3030
# called at the end of this module

tests/test_openml/test_config.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import os
2+
3+
import openml.config
4+
import openml.testing
5+
6+
7+
class TestConfig(openml.testing.TestBase):
8+
9+
def test_config_loading(self):
10+
self.assertTrue(os.path.exists(openml.config.config_file))
11+
self.assertTrue(os.path.isdir(os.path.expanduser('~/.openml')))

0 commit comments

Comments
 (0)