##// END OF EJS Templates
include {sys.prefix}/etc/ipython in config path
Min RK -
Show More
@@ -43,6 +43,14 b' else:'
43 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 54 _envvar = os.environ.get('IPYTHON_SUPPRESS_CONFIG_ERRORS')
47 55 if _envvar in {None, ''}:
48 56 IPYTHON_SUPPRESS_CONFIG_ERRORS = None
@@ -398,6 +406,7 b' class BaseIPythonApplication(Application):'
398 406
399 407 def init_config_files(self):
400 408 """[optionally] copy default config files into profile dir."""
409 self.config_file_paths.extend(ENV_CONFIG_DIRS)
401 410 self.config_file_paths.extend(SYSTEM_CONFIG_DIRS)
402 411 # copy config files
403 412 path = self.builtin_profile_dir
General Comments 0
You need to be logged in to leave comments. Login now