Merge pull request #989 from PyPSA/share-resources
scenario management: fix shared resources
This commit is contained in:
commit
60fe95ddf7
@ -106,7 +106,7 @@ def get_run_path(fn, dir, rdir, shared_resources):
|
|||||||
elif isinstance(shared_resources, str):
|
elif isinstance(shared_resources, str):
|
||||||
rdir = shared_resources + "/"
|
rdir = shared_resources + "/"
|
||||||
elif isinstance(shared_resources, bool):
|
elif isinstance(shared_resources, bool):
|
||||||
rdir = ""
|
rdir = "" if shared_resources else rdir
|
||||||
else:
|
else:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"shared_resources must be a boolean, str, or 'base' for special handling."
|
"shared_resources must be a boolean, str, or 'base' for special handling."
|
||||||
|
Loading…
Reference in New Issue
Block a user