Mercurial > repo
view bin/edit @ 10308:520f4f114d5d
<shachaf> fetch bin/edit http://slbkbs.org:5196/get?path=%2Fhackenv%2Fbin%2Fedit
author | HackBot |
---|---|
date | Fri, 17 Feb 2017 04:42:13 +0000 |
parents | 96425ae9376f |
children | 8c93629c5394 |
line wrap: on
line source
#!/usr/bin/env python import sys, os, urllib if len(sys.argv) < 2: print "usage: edit <path>" sys.exit(1) print "http://slbkbs.org:5196/edit?path=" + urllib.quote(os.path.realpath(sys.argv[1]))