Skip to content
Snippets Groups Projects
Commit 2353a3cc authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Merge branch 'RCFILENAME' into 'master'

Fix the default location of RCFILENAME

See merge request !63
parents 04e6ecdb 57dae77f
Branches
Tags v2.1.4
1 merge request!63Fix the default location of RCFILENAME
Pipeline #
...@@ -13,7 +13,7 @@ logger = logging.getLogger(__name__) ...@@ -13,7 +13,7 @@ logger = logging.getLogger(__name__)
ENVNAME = 'BOBRC' ENVNAME = 'BOBRC'
"""Name of environment variable to look for an alternative for the RC file""" """Name of environment variable to look for an alternative for the RC file"""
RCFILENAME = '.bobrc' RCFILENAME = '~' + os.sep + '.bobrc'
"""Default name to be used for the RC file to load""" """Default name to be used for the RC file to load"""
...@@ -33,7 +33,7 @@ def _get_rc_path(): ...@@ -33,7 +33,7 @@ def _get_rc_path():
if 'BOBRC' in os.environ: if 'BOBRC' in os.environ:
path = os.environ['BOBRC'] path = os.environ['BOBRC']
else: else:
path = os.path.expanduser('~' + os.sep + RCFILENAME) path = os.path.expanduser(RCFILENAME)
return path return path
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment