Mercurial > repo
changeset 10392:355a1c8028dc
<oerjan> fetch bin/wiki https://hackego.esolangs.org/get/bin/wiki
author | HackBot |
---|---|
date | Sat, 11 Mar 2017 01:27:29 +0000 |
parents | 31fc0eb7ea45 |
children | 5fe5f3058da2 |
files | bin/wiki |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /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))