Skip to content

Commit

Permalink
use single console history file
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdefinitelyahuman committed Apr 5, 2020
1 parent a7a3d6a commit 37ce3d9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions brownie/_cli/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import brownie
from brownie import network, project
from brownie._config import ARGV, BROWNIE_FOLDER, CONFIG, _update_argv_from_docopt
from brownie._config import ARGV, CONFIG, _get_data_folder, _update_argv_from_docopt
from brownie.utils import color
from brownie.utils.docopt import docopt

Expand Down Expand Up @@ -61,11 +61,8 @@ def __init__(self, project=None):

if project:
project._update_and_register(locals_dict)
history_file = project._path
else:
history_file = BROWNIE_FOLDER

history_file = str(history_file.joinpath(".history").absolute())
history_file = str(_get_data_folder().joinpath(".history").absolute())
atexit.register(_atexit_readline, history_file)
try:
readline.read_history_file(history_file)
Expand Down

0 comments on commit 37ce3d9

Please sign in to comment.