#author("2019-06-18T17:40:22+09:00","default:Miyashita","Miyashita")
#author("2019-06-20T09:55:37+09:00","default:Miyashita","Miyashita")
*権限を与えて直接実行可能にする [#zc113391]
hoge.pyファイルの1行目に
#codeprettify(lang-bash){{
#!/usr/bin/env python
}}
#codeprettify(lang-bash){{
#!/usr/bin/python
}}
のどちらかを入れて,
#codeprettify(lang-bash){{
chmod a+x hoge.py
}}
等で権限を与えると
#codeprettify(lang-bash){{
python hoge.py
}}
も
#codeprettify(lang-bash){{
./hoge.py
}}
も処理になる.~
も同じ処理になる.~

Front page   Edit Diff Attach Copy Rename Reload   New List of pages Search Recent changes   Help   RSS of recent changes