# HG changeset patch # User HackBot # Date 1489195649 0 # Node ID 355a1c8028dc8a816706e0f61df49b012b220d82 # Parent 31fc0eb7ea452893eb19a09aaedbbe4e857a8db3 fetch bin/wiki https://hackego.esolangs.org/get/bin/wiki diff -r 31fc0eb7ea45 -r 355a1c8028dc bin/wiki --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/wiki Sat Mar 11 01:27:29 2017 +0000 @@ -0,0 +1,8 @@ +#!/usr/bin/env python +import sys, os.path, urllib +if len(sys.argv) <= 1: + print "https://esolangs.org/" +else: + f = os.path.abspath(sys.argv[1]) + print ("https://esolangs.org/wiki/" + + urllib.quote(f))