Skip to content

Commit

Permalink
Fix Windows compatibility issue in dataset.utils
Browse files Browse the repository at this point in the history
  • Loading branch information
danielegrattarola committed Mar 1, 2022
1 parent ad2d965 commit 9ebef9e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion docs/autogen.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@
"functions": [],
"methods": [],
"classes": [
layers.InnerProduct,
layers.Disjoint2Batch,
layers.GraphMasking,
layers.InnerProduct,
layers.MinkowskiProduct,
],
},
Expand Down
5 changes: 2 additions & 3 deletions spektral/datasets/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
import requests
from tqdm import tqdm

_dataset_folder = "~/.spektral/datasets"
_config_path = osp.expanduser("~/.spektral/config.json")
_dataset_folder = os.path.join("~", "spektral", "datasets")
_config_path = osp.expanduser(os.path.join("~", "spektral", "config.json"))
if osp.isfile(_config_path):
import json

with open(_config_path) as fh:
_config = json.load(fh)
_dataset_folder = _config.get("dataset_folder", _dataset_folder)
Expand Down

0 comments on commit 9ebef9e

Please sign in to comment.