Skip to content
Snippets Groups Projects
Commit 3a363850 authored by Timothee Besset's avatar Timothee Besset Committed by Timothee Besset
Browse files

switch to pysdl2-dll

parent 9a95fd43
Branches
Tags
No related merge requests found
File deleted
...@@ -4,24 +4,5 @@ import sys ...@@ -4,24 +4,5 @@ import sys
import os import os
import platform import platform
def setup_pysdl2_dll_path():
if platform.system() != 'Windows':
return
if 'PYSDL2_DLL_PATH' in os.environ:
return
if getattr(sys, 'frozen', False):
# Running frozen
dir_ = os.path.dirname(sys.executable)
os.environ['PYSDL2_DLL_PATH'] = os.path.join(dir_, 'lib', 'devkit_client', 'gui2')
else:
# Running from script
dir_ = os.path.dirname(__file__)
os.environ['PYSDL2_DLL_PATH'] = dir_
print('Setting PYSDL2_DLL_PATH: {!r}'.format(os.environ['PYSDL2_DLL_PATH']))
if sys.stdout:
sys.stdout.flush()
setup_pysdl2_dll_path()
from .gui2 import main from .gui2 import main
...@@ -34,6 +34,7 @@ assert sys.platform == 'win32' ...@@ -34,6 +34,7 @@ assert sys.platform == 'win32'
module_map = { module_map = {
'PySDL2': 'sdl2', 'PySDL2': 'sdl2',
'pysdl2-dll': 'sdl2dll',
'PyOpenGL': 'OpenGL', 'PyOpenGL': 'OpenGL',
'PyNaCl': 'nacl', 'PyNaCl': 'nacl',
'imgui[sdl2]': 'imgui', 'imgui[sdl2]': 'imgui',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment