saner with_my script + more examples in readme

This commit is contained in:
Dima Gerasimov 2019-10-12 01:22:14 +01:00
parent 2752bd6fd1
commit 1dda564a9e
4 changed files with 64 additions and 23 deletions

View file

@ -37,7 +37,7 @@ def run():
my_configuration_root = abspath('my_repo/my_configuration_template')
# edit the config and set path to private configuration
my = Path(with_my).read_text().replace('MY_CONFIGURATION_DIR=', 'MY_CONFIGURATION_DIR=' + str(my_configuration_root))
my = Path(with_my).read_text().replace("MY_CONFIGURATION_DIR = ''", "MY_CONFIGURATION_DIR = '{}'".format(my_configuration_root))
Path(with_my).write_text(my)
#