Message93281
Steven> $ echo pass > test.py
Steven> $ chmod u+x test.py
Steven> $ python2.6 -c "import test"
Steven> $ ls -l test.pyc
Steven> -rwxrw-r-- 1 steve steve 94 2009-09-29 16:54 test.pyc
Steven> $ ./test.pyc
Steven> : command not found
And if you try ./test.py I presume you also get an error in this trivial
case. If your .py file is not meant to be executed, why set the execute
bit? I do agree it's a little strange to also set the execute bit on the
.pyc file though.
Skip |
|
Date |
User |
Action |
Args |
2009-09-29 11:51:42 | skip.montanaro | set | recipients:
+ skip.montanaro, steven.daprano |
2009-09-29 11:51:40 | skip.montanaro | link | issue7016 messages |
2009-09-29 11:51:40 | skip.montanaro | create | |
|