3 ms·
> 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" end
by alsko 6y 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!
- OJFord 6y agoWhat? It's a python script, 'it' there is the source. It's executable via the python interpreter given in its shebang line.
- neycmrtn 6y ago"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
- pvg 6y agoYou 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)
- alsko 6y agoWow, I feel _really_ dumb now - I just saw the filename without ".py" and assumed it was an executable Sorry, I take it back!
- OJFord 6y agoIt'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.