Show More
@@ -43,6 +43,14 b' else:' | |||||
43 | "/etc/ipython", |
|
43 | "/etc/ipython", | |
44 | ] |
|
44 | ] | |
45 |
|
45 | |||
|
46 | ||||
|
47 | ENV_CONFIG_DIRS = [] | |||
|
48 | _env_config_dir = os.path.join(sys.prefix, 'etc', 'ipython') | |||
|
49 | if _env_config_dir not in SYSTEM_CONFIG_DIRS: | |||
|
50 | # only add ENV_CONFIG if sys.prefix is not already included | |||
|
51 | ENV_CONFIG_DIRS.append(_env_config_dir) | |||
|
52 | ||||
|
53 | ||||
46 | _envvar = os.environ.get('IPYTHON_SUPPRESS_CONFIG_ERRORS') |
|
54 | _envvar = os.environ.get('IPYTHON_SUPPRESS_CONFIG_ERRORS') | |
47 | if _envvar in {None, ''}: |
|
55 | if _envvar in {None, ''}: | |
48 | IPYTHON_SUPPRESS_CONFIG_ERRORS = None |
|
56 | IPYTHON_SUPPRESS_CONFIG_ERRORS = None | |
@@ -398,6 +406,7 b' class BaseIPythonApplication(Application):' | |||||
398 |
|
406 | |||
399 | def init_config_files(self): |
|
407 | def init_config_files(self): | |
400 | """[optionally] copy default config files into profile dir.""" |
|
408 | """[optionally] copy default config files into profile dir.""" | |
|
409 | self.config_file_paths.extend(ENV_CONFIG_DIRS) | |||
401 | self.config_file_paths.extend(SYSTEM_CONFIG_DIRS) |
|
410 | self.config_file_paths.extend(SYSTEM_CONFIG_DIRS) | |
402 | # copy config files |
|
411 | # copy config files | |
403 | path = self.builtin_profile_dir |
|
412 | path = self.builtin_profile_dir |
General Comments 0
You need to be logged in to leave comments.
Login now