mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-28 05:26:13 +02:00
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:
parent
d9951b54c0
commit
2a3fd820b9
4 changed files with 21 additions and 2 deletions
|
@ -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=""):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue