1. Marcus von Appen
  2. py-sdl2


Marcus von Appen  committed a55a3be

- put the SDL2 dll path at the beginning of PATH, if a PYSDL2_DLL_PATH
is provided to avoid loading issues for third party DLLs on Win32

  • Participants
  • Parent commits b7cbf89
  • Branches default

Comments (0)

Files changed (1)

File sdl2/dll.py

View file
  • Ignore whitespace
             raise RuntimeError("could not load any library for %s" % libinfo)
         if path is not None and sys.platform in ("win32", "cli") and \
             path in self._libfile:
-            os.environ["PATH"] += ";%s" % path
+            os.environ["PATH"] = "%s;%s" % (path, os.environ["PATH"])
     def bind_function(self, funcname, args=None, returns=None, optfunc=None):
         """Binds the passed argument and return value types to the specified