Mercurial > repo
changeset 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 |
files | bin/edit |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/edit Fri Feb 17 04:29:20 2017 +0000 +++ b/bin/edit Fri Feb 17 04:30:13 2017 +0000 @@ -1,3 +1,3 @@ #!/usr/bin/env python -import sys, urllib -print "http://slbkbs.org:5196/edit?path=" + urllib.quote(sys.argv[1]) +import sys, os, urllib +print "http://slbkbs.org:5196/edit?path=" + urllib.quote(os.path.realpath(sys.argv[1]))