38 Star 249 Fork 37

GVP墨客实验室/墨干理工套件

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
python3.scm 1.19 KB
一键复制 编辑 原始数据 按行查看 历史
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; MODULE : python3.scm
;; DESCRIPTION : python3 Binary plugin
;; COPYRIGHT : (C) 2024 Darcy Shen
;;
;; This software falls under the GNU general public license version 3 or later.
;; It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
;; in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(texmacs-module (binary python3)
(:use (binary common)))
(define (python3-binary-candidates)
(cond ((os-macos?)
(list "/usr/bin/python3"
"/opt/homebrew/bin/python3"
"/usr/local/bin/python3"))
((os-win32?)
(list "$LOCALAPPDATA/Programs/Python/Python3*/python.exe"))
(else
(list "/usr/bin/python3"))))
(tm-define (find-binary-python3)
(:synopsis "Find the url to the python3 binary, return (url-none) if not found")
(find-binary (python3-binary-candidates) "python3"))
(tm-define (has-binary-python3?)
(not (url-none? (find-binary-python3))))
(tm-define (version-binary-python3)
(version-binary (find-binary-python3)))
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/XmacsLabs/mogan.git
git@gitee.com:XmacsLabs/mogan.git
XmacsLabs
mogan
墨干理工套件
branch-1.2

搜索帮助

Cb406eda 1850385 E526c682 1850385