# HG changeset patch # User HackBot # Date 1487305813 0 # Node ID a05c530484742a828567e362d7a3910596b601c8 # Parent 503b67656c89eb143d846651fc9014fd44b5fb21 ` >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 diff -r 503b67656c89 -r a05c53048474 bin/edit --- 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]))