Skip to content

Commit 8242425

Browse files
committed
In read_url, when uploading data, now always convert the path to the absolute path. This makes it possible to call it with a relative path, which improves user friendliness of the API.
1 parent 6151898 commit 8242425

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

openml/apiconnector.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,8 @@ def _read_url(self, url, data=None, file_dictionary=None):
858858
if file_dictionary is not None:
859859
file_elements = {}
860860
for key, path in file_dictionary.items():
861-
if os.path.isabs(path) and os.path.exists(path):
861+
path = os.path.abspath(path)
862+
if os.path.exists(path):
862863
try:
863864
if key is 'dataset':
864865
decoder = arff.ArffDecoder()

0 commit comments

Comments
 (0)