Merge pull request #105 from PyPSA/config-default

Snakefile: load default config if config.yaml does not exist
This commit is contained in:
FabianHofmann 2019-11-29 09:15:13 +01:00 committed by GitHub
commit 036d44418d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,8 @@
from os.path import normpath
from os.path import normpath, exists
from shutil import copyfile
if not exists("config.yaml"):
copyfile("config.default.yaml", "config.yaml")
configfile: "config.yaml"