Hacker News new | ask | show | jobs
by alsko 2042 days ago
> Just download and chmod it

No source? No thanks.

Edit: Discard this comment! I thought pwk in the repo was an executable because it did not have a ".py" ending and did not care to check. Sorry!

2 comments

What? It's a python script, 'it' there is the source. It's executable via the python interpreter given in its shebang line.
"pwk" is both code and "executable" -- you can open it with any text editor. I didn't want to name it "pwk.py" to save on typing on the command line. --m
Wow, I feel _really_ dumb now - I just saw the filename without ".py" and assumed it was an executable

Sorry, I take it back!

It's sort of just pedantry because I know what you mean, but FYI it is an executable when you mark it (chmod +x) as such; what you mean to say is that you assumed it was a binary, the output of a compiler, with the input (source) not provided.
You don't need to sign your messages on HN (not really obvious since it's not written anywhere but it's one of those HN things)