Create journal with absolute path when no path is specified (#972)

* create jrnl with abspath

Co-authored-by: = <esrh@netc.eu>
This commit is contained in:
eshrh 2020-06-13 14:08:22 -04:00 committed by GitHub
parent d9951b54c0
commit 2a3fd820b9
4 changed files with 21 additions and 2 deletions

View file

@ -96,6 +96,11 @@ def set_config(context, config_file):
cf.write("version: {}".format(__version__))
@when('we change directory to "{path}"')
def move_up_dir(context, path):
os.chdir(path)
@when('we open the editor and enter "{text}"')
@when("we open the editor and enter nothing")
def open_editor_and_enter(context, text=""):