From acf9f3e1232af06e3c0c88aadc0a0310a163fb9a Mon Sep 17 00:00:00 2001 From: limkokhole Date: Tue, 23 Jun 2020 16:33:30 +0800 Subject: [PATCH] Darwin not win --- pinterest-downloader.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pinterest-downloader.py b/pinterest-downloader.py index fe443d7..9c09d3a 100644 --- a/pinterest-downloader.py +++ b/pinterest-downloader.py @@ -26,7 +26,7 @@ __credits__ = ['Inspired by https://github.com/SevenLines/pinterest-board-downlo __license__ = 'MIT' # Version increase if the output file/dir naming incompatible with existing #, which might re-download for some files of previous version because of dir/filename not match -__version__ = 1.3 +__version__ = 1.4 __maintainer__ = 'Lim Kok Hole' __email__ = 'limkokhole@gmail.com' __status__ = 'Production' @@ -35,7 +35,9 @@ __status__ = 'Production' import sys, os, traceback import platform -if 'win' in platform.system().lower(): +plat = platform.system().lower() +if ('window' in plat) or plat.startswith('win'): + # Darwin should treat as Linux IS_WIN = True else: IS_WIN = False