Skip to content

Commit

Permalink
Fixed issue #4: the EDITOR environment variable gets loaded correctly…
Browse files Browse the repository at this point in the history
… in edit
  • Loading branch information
gnebbia committed Sep 18, 2020
1 parent 64b712f commit cffb3de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kb/commands/edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def edit(args: Dict[str, str], config: Dict[str, str]):
if len(artifacts) == 1:
artifact = artifacts.pop()
category_path = Path(config["PATH_KB_DATA"], artifact.category)
call([config["EDITOR"], Path(category_path, artifact.title)])
call([config["EDITOR"], Path(category_path, artifact.title)], shell=True)
elif len(artifacts) > 1:
print(
"There is more than one artifact with that title, please specify a category")
Expand Down

0 comments on commit cffb3de

Please sign in to comment.