Skip to content

Commit 7049f1c

Browse files
committed
Display actual config file in help message
1 parent 39e75dc commit 7049f1c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

bpython/curtsiesfrontend/repl.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import bpython
2828
from bpython.repl import Repl as BpythonRepl, SourceNotFound
2929
from bpython.repl import LineTypeTranslator as LineType
30-
from bpython.config import getpreferredencoding, default_config_path
30+
from bpython.config import getpreferredencoding
3131
from bpython.formatter import BPythonFormatter
3232
from bpython import autocomplete
3333
from bpython.translations import _
@@ -61,8 +61,7 @@
6161
HELP_MESSAGE = """
6262
Thanks for using bpython!
6363
64-
See http://bpython-interpreter.org/ for more information and
65-
http://docs.bpython-interpreter.org/ for docs.
64+
See http://bpython-interpreter.org/ for more information and http://docs.bpython-interpreter.org/ for docs.
6665
Please report issues at https://github.com/bpython/bpython/issues
6766
6867
Features:
@@ -75,7 +74,7 @@
7574
bpython -i your_script.py runs a file in interactive mode
7675
bpython -t your_script.py pastes the contents of a file into the session
7776
78-
A config file at {config_file_location} customizes keys and behavior of bpython.
77+
A config file at {config.config_path} customizes keys and behavior of bpython.
7978
You can also set which pastebin helper and which external editor to use.
8079
See {example_config_url} for an example config file.
8180
Press {config.edit_config_key} to edit this config file.
@@ -1983,7 +1982,6 @@ def version_help_text(self):
19831982
+ ("using curtsies version %s" % curtsies.__version__)
19841983
+ "\n"
19851984
+ HELP_MESSAGE.format(
1986-
config_file_location=default_config_path(),
19871985
example_config_url=EXAMPLE_CONFIG_URL,
19881986
config=self.config,
19891987
)

0 commit comments

Comments
 (0)