Commits

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
platforms

  • Participants
  • Parent commits b7cbf89

Comments (0)

Files changed (1)

             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