diff bin/wiki @ 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
children 6f89145cd692
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))