Mercurial > repo
view bin/tomfoolery @ 6715:1e8f5e75e7b1
<zgrep> ` echo \'if not o.path.isfile(a):print u.check_output(["?",a]),;exit()\' >> bin/tomfoolery
author | HackBot |
---|---|
date | Wed, 10 Feb 2016 02:57:52 +0000 |
parents | 2b895af76bd8 |
children | e862c2b6c6db |
line wrap: on
line source
#!/usr/bin/env python import os as o,sys as s,subprocess as u t="tmflry" if not o.path.isdir(t):print"Somebody should take a peek inside me.";exit() if len(s.argv) != 2:print"I have nothing to say to you.";exit() a=s.argv[1];o.chdir(t) if not o.path.isfile(a):print u.check_output(["?",a]),;exit()