Skip to content

Conversation

pdecat
Copy link

@pdecat pdecat commented Oct 28, 2021

Change browser download location and temporary user data directory to:

  • If $PYPPETEER_HOME environment variable is defined, use this location.
  • Otherwise, use platform dependent locations, based on appdirs:
    • 'C:\Users\<username>\AppData\Local\pyppeteer' (Windows)
    • '/Users/<username>/Library/Application Support/pyppeteer' (OS X)
    • '/home/<username>/.local/share/pyppeteer' (Linux)
    • or in '$XDG_DATA_HOME/pyppeteer' if $XDG_DATA_HOME is defined

See https://github.com/pyppeteer/pyppeteer/blob/0.0.20/CHANGES.md#version-0020-2018-08-11

On my test system:

# ls -l ~/.local/share/pyppeteer/local-chromium/
total 4
drwxrwxr-x 3 patrick patrick 4096 Oct  8 14:23 588429

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant