Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix temp directory creation on container
  • Loading branch information
mfeurer committed Apr 14, 2021
commit d535fff73feffd488533b4ed2d960f02d06c20be
4 changes: 2 additions & 2 deletions openml/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def _setup(config=None):
# read config file, create directory for config file
if not os.path.exists(config_dir):
try:
os.mkdir(config_dir)
os.makedirs(config_dir, exist_ok=True)
cache_exists = True
except PermissionError:
cache_exists = False
Expand Down Expand Up @@ -235,7 +235,7 @@ def _get(config, key):
# create the cache subdirectory
if not os.path.exists(cache_directory):
try:
os.mkdir(cache_directory)
os.makedirs(cache_directory, exist_ok=True)
except PermissionError:
openml_logger.warning(
"No permission to create openml cache directory at %s! This can result in "
Expand Down