4 Star 3 Fork 0

Gitee 极速下载/AutoKey

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/autokey/autokey
克隆/下载
autokey-shell 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
# -*- mode: python -*-
import distutils.spawn
import subprocess
import sys
start_script = '''
import autokey.iomediator
import autokey.configmanager.configmanager
import autokey.scripting as scripting
import autokey.scripting.highlevel as hl
system = scripting.System()
print("""
AutoKey functions from “autokey.scripting.highlevel” (under name “hl”)
and “autokey.scripting.System()” (under name “system”) are imported.
You can try the functions on the interpreter. For example:
help(hl.click_on_pat)
print(system.exec_command('ls'))
""")
'''
ipython3_cmd = distutils.spawn.find_executable('ipython3')
if ipython3_cmd is not None:
retcode = subprocess.call([ipython3_cmd, '-ic', start_script])
raise SystemExit(retcode)
python3_path = distutils.spawn.find_executable('python3')
if python3_path is not None:
retcode = subprocess.call([python3_path, '-ic', start_script])
raise SystemExit(retcode)
print('\033[91m' + 'Error! No Python 3 shell found.' + '\033[0m')
sys.exit(1)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/mirrors/AutoKey.git
git@gitee.com:mirrors/AutoKey.git
mirrors
AutoKey
AutoKey
master

搜索帮助