check darwin before windows because darwin has win, face plam!

This commit is contained in:
Lex Berezhny 2019-01-22 17:37:52 -05:00
parent 2dbf96da81
commit 8593cd362a

View file

@ -457,11 +457,11 @@ class Config(CLIConfig):
self.set_default_paths()
def set_default_paths(self):
if 'win' in sys.platform:
get_directories = get_windows_directories
elif 'darwin' in sys.platform:
if 'darwin' in sys.platform.lower():
get_directories = get_darwin_directories
elif 'linux' in sys.platform:
elif 'win' in sys.platform.lower():
get_directories = get_windows_directories
elif 'linux' in sys.platform.lower():
get_directories = get_linux_directories
else:
return