-
Notifications
You must be signed in to change notification settings - Fork 49
Preferences File
windmill edited this page Sep 13, 2010
·
3 revisions
Windmill has a lot of different variables it need to set. To keep things simple windmill builds a large set of default settings, you can overwrite any of those settings using your local preferences file.
The location of your default profile depends on your operating system.
MacOS X
~/Library/Application\ Support/windmill/prefs.py
Windows
C:\Documents and Settings\Username\Application Data\windmill\prefs.py
Linux
/home/username/.windmill/prefs.py
# local windmill preferences file
# warning - this file will be overwritten by windmill
# so any edits should be done while windmill
# is not active.
import windmill
from windmill.server import add_forward_condition, remove_forward_condition
from windmill.server import proxy
proxy.exclude_from_retry.append('www.google-analytics.com')
proxy.first_forward_domains.append('static.slide.com')
conditions= [
lambda e: 'swf' not in e['reconstructed_url'] ,
lambda e: 'mozilla.org/en-US/firefox/livebookmarks.html' not in e['reconstructed_url'],
]
for c in conditions: add_forward_condition(c)