manim/tests/__init__.py
Mark Miller d8d9a01b9a
Enable CI testing for OpenGL (#1160)
* add simple circle test for opengl

* literally a comma

* add rgb tolerance to graphical unit tester

* start up xvfb on ubuntu?

* black style

* reduce tolerance to pixel ?

* add msys2 action

* add mesa install

* ci: windows add msys2 to path
Compile moderngl from source
add a init tests for CI to work
add colour to pytest

* minor edits

* mild refactor of scene / camera / renderer relationship

* flake-d

* reverted refactor

* reverted opengl split at the level of graphical unit tester

* remove unnecessary config in definition

* CI: remove python3 from MSYS2 also

Co-authored-by: Naveen M K <naveen@syrusdark.website>
2021-03-28 22:09:29 +02:00

10 lines
312 B
Python

import os
if os.getenv("CI") and os.name == "nt":
location = r"C:\msys64\mingw64\bin"
os.environ["PATH"] = location + os.pathsep + os.getenv("PATH")
import ctypes
ctypes.CDLL(r"C:\msys64\mingw64\bin\OPENGL32.dll")
if hasattr(os, "add_dll_directory"):
os.add_dll_directory(location)