Skip to content

Instantly share code, notes, and snippets.

@benastahl
Last active August 3, 2021 18:36
Show Gist options
  • Save benastahl/e0b2d810973a34e5498b34d7f563c641 to your computer and use it in GitHub Desktop.
Save benastahl/e0b2d810973a34e5498b34d7f563c641 to your computer and use it in GitHub Desktop.
import sys
if sys.platform == "darwin":
# OS X
file_dividers = "/"
clear_method = "clear"
chromedriver_file = "chromedriver_mac"
elif sys.platform == "win32":
# Windows
windows = os.getenv("HOMEDRIVE")
clear_method = "cls"
chromedriver_file = "chromedriver.exe"
file_dividers = "\\"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment