Mercurial > repo
comparison bin/edit @ 10306:a05c53048474
<shachaf> ` >bin/edit echo \'#!/usr/bin/env python\'; >>bin/edit echo \'import sys, os, urllib\'; >>bin/edit echo \'print "http://slbkbs.org:5196/edit?path=" + urllib.quote(os.path.realpath(sys.argv[1]))\'; chmod +x bin/edit
author | HackBot |
---|---|
date | Fri, 17 Feb 2017 04:30:13 +0000 |
parents | 503b67656c89 |
children | 96425ae9376f |
comparison
equal
deleted
inserted
replaced
10305:503b67656c89 | 10306:a05c53048474 |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 import sys, urllib | 2 import sys, os, urllib |
3 print "http://slbkbs.org:5196/edit?path=" + urllib.quote(sys.argv[1]) | 3 print "http://slbkbs.org:5196/edit?path=" + urllib.quote(os.path.realpath(sys.argv[1])) |