comparison bin/wiki @ 11334:6f89145cd692

<fizzie> fetch bin/wiki https://hackego.esolangs.org/get/bin/wiki
author HackBot
date Sat, 20 Jan 2018 12:42:29 +0000
parents 355a1c8028dc
children 2c8c313864e7
comparison
equal deleted inserted replaced
11333:fabb7a2d8264 11334:6f89145cd692
2 import sys, os.path, urllib 2 import sys, os.path, urllib
3 if len(sys.argv) <= 1: 3 if len(sys.argv) <= 1:
4 print "https://esolangs.org/" 4 print "https://esolangs.org/"
5 else: 5 else:
6 f = os.path.abspath(sys.argv[1]) 6 f = os.path.abspath(sys.argv[1])
7 if f.startswith('/hackenv/'): f = f[9:]
7 print ("https://esolangs.org/wiki/" + 8 print ("https://esolangs.org/wiki/" +
8 urllib.quote(f)) 9 urllib.quote(f))