first commit
This commit is contained in:
35
app/config/__init__.py
Executable file
35
app/config/__init__.py
Executable file
@@ -0,0 +1,35 @@
|
||||
from app.lib.face.facepp import API, File
|
||||
|
||||
class Config:
|
||||
# 管理员头像地址,需要替换成你自己的头像
|
||||
administrators = "./res/img/administrators.jpg"
|
||||
|
||||
# 摄像头实时捕获的截图存放地址
|
||||
current_user = "./res/img/current_user.jpg"
|
||||
|
||||
# face++ api 初始化
|
||||
faceApi = API()
|
||||
|
||||
# 是否处于锁屏状态,False 解锁状态下,True 锁屏状态下
|
||||
is_locked = False
|
||||
|
||||
# 电脑锁屏密码
|
||||
password = "<??>"
|
||||
|
||||
# 是否是第一次运行,False 是 不锁屏,true 不是 进行锁屏
|
||||
is_first_count = 1
|
||||
|
||||
# pyobjc-framework-Quartz 获取到的状态
|
||||
cg_session_info = None
|
||||
|
||||
author = 'bmy'
|
||||
app_name = 'FaceUnlock'
|
||||
app_env = '%s_ENV' % app_name.upper()
|
||||
version = '1.3.3'
|
||||
github_page = 'https://github.com/%s/%s' % (author, app_name)
|
||||
releases_url = '%s/releases' % github_page
|
||||
protector = '[protector]'
|
||||
idle_time = 30
|
||||
idle_time_short = 2
|
||||
unlock_count_limit = 3
|
||||
restart_deadline = 0.2
|
||||
Reference in New Issue
Block a user