Mercurial > repo
view bin/wiki @ 12436:a626721f5556 draft
<b_jonas> python3 -cn="/hackenv/bin/("; s=open(n).read(); s=s.replace(\' canary\',\' -- "$HACKENV/canary"\'); open(n,"w").write(s); print(s);
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Sat, 11 Dec 2021 21:49:11 +0000 |
parents | 2c8c313864e7 |
children |
line wrap: on
line source
#!/usr/bin/env python import sys, os.path, urllib if len(sys.argv) <= 1: print "https://esolangs.org/" else: print ("https://esolangs.org/wiki/" + urllib.quote(sys.argv[1]))