---
--- Date         : 2020-07-21 17:57:09
--- Author       : LICHAO7
--- LastEditors  : LICHAO7
--- LastEditTime : 2020-08-05 17:24:47
--- Description  : 
---
ENV_CONST = {};

---
--- 系统根目录
--- System root directory.
---
--- @type string
---
ENV_CONST.SystemRoot = os.getenv("SystemRoot");

---
--- 所有“用户配置文件”的位置
--- Location of all user profiles.
---
--- @type string
---
ENV_CONST.ALLUSERSPROFILE = os.getenv("ALLUSERSPROFILE");

---
--- 所有“用户配置文件”的位置
--- Location of all user profiles.
---
--- @type string
---
ENV_CONST.alluserSpRoFilE = os.getenv("alluserSpRoFilE");

---
--- 计算机的名称
--- Name of computer.
---
--- @type string
---
ENV_CONST.COMPUTERNAME = os.getenv("COMPUTERNAME");

---
--- 命令行解释器可执行程序的准确路径
--- The exact path to the command line interpreter executable.
---
--- @type string
---
ENV_CONST.COMSPEC = os.getenv("COMSPEC");

---
--- 连接到用户主目录的本地工作站驱动器号
--- The local workstation drive letter connected to the user's home directory.
---
--- @type string
---
ENV_CONST.HOMEDRIVE = os.getenv("HOMEDRIVE");

---
--- 用户主目录的完整路径
--- The full path to the user's home directory.
---
--- @type string
---
ENV_CONST.HOMEPATH = os.getenv("HOMEPATH");

---
--- 安装在计算机上的处理器的数目
--- The number of processors installed on a computer.
---
--- @type string
---
ENV_CONST.NUMBER_OF_PROCESSORS = os.getenv("NUMBER_OF_PROCESSORS");

---
--- 操作系统的名称
--- Name of the operating system.
---
--- @type string
---
ENV_CONST.OS = os.getenv("OS");

---
--- 计算机上安装的处理器的型号
--- The type of processor installed on your computer.
---
--- @type string
---
ENV_CONST.PROCESSOR_LEVEL = os.getenv("PROCESSOR_LEVEL");

---
--- 连接到用户主目录的本地工作站驱动器号
--- The local workstation drive letter connected to the user's home directory.
---
--- @type string
---
ENV_CONST.PATHEXT = os.getenv("PATHEXT");

---
--- 处理器修订号的系统变量
--- System variable for processor revision number.
---
--- @type string
---
ENV_CONST.PROCESSOR_REVISION = os.getenv("PROCESSOR_REVISION");

---
--- 临时目录
--- The temporary directory.
---
--- @type string
---
ENV_CONST.TEMP = os.getenv("TEMP");

---
--- 系统根目录的驱动器
--- The drive to the system root.
---
--- @type string
---
ENV_CONST.SYSTEMDRIVE = os.getenv("SYSTEMDRIVE");

---
--- 判断是否为Windows
--- Determine if it is Windows.
---
--- @type boolean
---
ENV_CONST.IS_WINDOWS = (string.find(string.lower(os.getenv("OS")), "windows") ~= nil);

---
--- 判断是否为WLinux
--- Determine if it is Linux.
---
--- @type boolean
---
ENV_CONST.IS_LINUX = (string.find(string.lower(os.getenv("OS")), "linux") ~= nil);

---
--- 判断是否为Android
--- Determine if it is Android.
---
--- @type boolean
---
ENV_CONST.IS_ANDROID = (string.find(string.lower(os.getenv("OS")), "android") ~= nil);

---
--- 判断是否为IOS
--- Determine if it is IOS.
---
--- @type boolean
---
ENV_CONST.IS_IOS = (string.find(string.lower(os.getenv("OS")), "apple") ~= nil);

os.ENV_CONST = ENV_CONST;