From: toddrme2178@gmail.com Date: 2017-09-20 Subject: Use rpm paths Use single-line paths. These must be replaced with the appropriate system paths in the .spec file. --- --- a/jupyter_core/paths.py +++ b/jupyter_core/paths.py @@ -124,10 +124,7 @@ if os.name == 'nt': else: # PROGRAMDATA is not defined by default on XP. SYSTEM_JUPYTER_PATH = [os.path.join(sys.prefix, 'share', 'jupyter')] else: - SYSTEM_JUPYTER_PATH = [ - "/usr/local/share/jupyter", - "/usr/share/jupyter", - ] + SYSTEM_JUPYTER_PATH = ["_datadir_jupyter_"] ENV_JUPYTER_PATH = [os.path.join(sys.prefix, 'share', 'jupyter')] @@ -186,10 +183,7 @@ if os.name == 'nt': else: # PROGRAMDATA is not defined by default on XP. SYSTEM_CONFIG_PATH = [] else: - SYSTEM_CONFIG_PATH = [ - "/usr/local/etc/jupyter", - "/etc/jupyter", - ] + SYSTEM_CONFIG_PATH = ["_sysconfdir_jupyter_"] ENV_CONFIG_PATH = [os.path.join(sys.prefix, 'etc', 'jupyter')]