运行时不禁用x11合成器(Linux)
This commit is contained in:
parent
926f40caf9
commit
ac392595b0
1
pypvz.py
1
pypvz.py
@ -5,6 +5,7 @@ import os
|
|||||||
import pygame as pg
|
import pygame as pg
|
||||||
from logging.handlers import RotatingFileHandler
|
from logging.handlers import RotatingFileHandler
|
||||||
# 由于在后续本地模块中存在对pygame的调用,在此处必须完成pygame的初始化
|
# 由于在后续本地模块中存在对pygame的调用,在此处必须完成pygame的初始化
|
||||||
|
os.environ["SDL_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR"]="0" # 设置临时环境变量以避免Linux下禁用x11合成器
|
||||||
pg.init()
|
pg.init()
|
||||||
|
|
||||||
from source import tool
|
from source import tool
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user