aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/data/scripts/per-site-settings.py
diff options
context:
space:
mode:
authorGravatar Brendan Taylor <whateley@gmail.com>2010-12-06 14:03:34 -0700
committerGravatar Brendan Taylor <whateley@gmail.com>2010-12-06 14:03:34 -0700
commit70e9a2b2f7631b73e6f0e99f6ab3b02b3b992434 (patch)
tree49570dc567f9ffbe98c85ec074461be44d0bd49f /examples/data/scripts/per-site-settings.py
parente8ef799cf5293aa19bebd7315596014e77037a57 (diff)
p-s-s: use UZBL_* vars instead of positional arguments
Diffstat (limited to 'examples/data/scripts/per-site-settings.py')
-rwxr-xr-xexamples/data/scripts/per-site-settings.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/data/scripts/per-site-settings.py b/examples/data/scripts/per-site-settings.py
index 7c7aba4..febfd0f 100755
--- a/examples/data/scripts/per-site-settings.py
+++ b/examples/data/scripts/per-site-settings.py
@@ -98,8 +98,8 @@ def write_to_socket(commands, sockpath):
if __name__ == '__main__':
- sockpath = sys.argv[5]
- url = urlparse.urlparse(sys.argv[6])
+ sockpath = os.environ['UZBL_SOCKET']
+ url = urlparse.urlparse(os.environ['UZBL_URI'])
filepath = sys.argv[8]
mode = os.stat(filepath)[stat.ST_MODE]