mirror of
https://github.com/QingdaoU/JudgeServer.git
synced 2025-11-04 14:50:01 +08:00
18 lines
429 B
Python
18 lines
429 B
Python
# coding=utf-8
|
|
from __future__ import unicode_literals
|
|
|
|
import grp
|
|
import os
|
|
import pwd
|
|
|
|
JUDGER_WORKSPACE_BASE = "/judger_run"
|
|
LOG_BASE = "/log"
|
|
|
|
COMPILER_LOG_PATH = os.path.join(LOG_BASE, "compile.log").encode("utf-8")
|
|
JUDGER_RUN_LOG_PATH = os.path.join(LOG_BASE, "judger.log").encode("utf-8")
|
|
|
|
LOW_PRIVILEDGE_UID = pwd.getpwnam("nobody").pw_uid
|
|
LOW_PRIVILEDGE_GID = grp.getgrnam("nogroup").gr_gid
|
|
|
|
TEST_CASE_DIR = "/test_case"
|