Skip to content

Instantly share code, notes, and snippets.

@ryonsherman
Last active October 12, 2015 04:58
Show Gist options
  • Save ryonsherman/3973930 to your computer and use it in GitHub Desktop.
Save ryonsherman/3973930 to your computer and use it in GitHub Desktop.
Get Firefox profile path.
import os
path = os.path.expanduser('~/.mozilla/firefox/')
path += filter(lambda file: file.endswith('.default'), os.listdir(path))[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment