【发布时间】:2015-03-17 17:35:19
【问题描述】:
我一直在尝试修改 Geany 中默认的 Python 编译器/运行命令。
一些搜索表明我需要修改`/usr/share/geany/filetypes.python的最后两行如下
#compiler=python -m py_compile "%f"
#run_cmd=python "%f"
compiler=python3 -c "import py_compile; py_compile.compile('%f')"
run_cmd=python3 "%f"
然而,在重新启动 Geany 后,Build -> Set Build Commands 仍然显示旧命令,并且尝试运行 py3 脚本会导致错误。
【问题讨论】:
标签: python python-3.x geany