admin_test.py 337 B

12345678910111213141516171819
  1. # This Python file uses the following encoding: utf-8
  2. # @author runhey
  3. # github https://github.com/runhey
  4. from module.gui.utils import check_admin
  5. if __name__ == "__main__":
  6. # 检查是不是以管理员身份运行,脚本启动的其他进程会继承权限
  7. # 但是貌似有问题的这个函数
  8. check_admin()