我一直在尝试修改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"
Run Code Online (Sandbox Code Playgroud)
然而,在重新启动Geany之后,Build -> Set Build Commands仍然会显示旧命令并尝试运行py3脚本会导致错误.