Loading nested/config/config.py +0 −2 Original line number Original line Diff line number Diff line Loading @@ -6,10 +6,8 @@ from os.path import expanduser # depending on whether nester was installed with the --user argument locally or not # depending on whether nester was installed with the --user argument locally or not home = os.path.expanduser("~") home = os.path.expanduser("~") if path.exists(home + '/.local/etc/nested/config.yml'): if path.exists(home + '/.local/etc/nested/config.yml'): print("local!!") config_path = home + '/.local/etc/nested/config.yml' config_path = home + '/.local/etc/nested/config.yml' else: else: print("/etc!!") config_path = '/etc/nested/config.yml' config_path = '/etc/nested/config.yml' with open(config_path) as stream: with open(config_path) as stream: Loading Loading
nested/config/config.py +0 −2 Original line number Original line Diff line number Diff line Loading @@ -6,10 +6,8 @@ from os.path import expanduser # depending on whether nester was installed with the --user argument locally or not # depending on whether nester was installed with the --user argument locally or not home = os.path.expanduser("~") home = os.path.expanduser("~") if path.exists(home + '/.local/etc/nested/config.yml'): if path.exists(home + '/.local/etc/nested/config.yml'): print("local!!") config_path = home + '/.local/etc/nested/config.yml' config_path = home + '/.local/etc/nested/config.yml' else: else: print("/etc!!") config_path = '/etc/nested/config.yml' config_path = '/etc/nested/config.yml' with open(config_path) as stream: with open(config_path) as stream: Loading