Skip to content

Added support for using OpenGL in subprocess in Windows pipeline #1987

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 31, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
env:
DISPLAY: :0
PYTEST_ADDOPTS: "--color=yes" # colors in pytest
GLCONTEXT_WIN_LIBGL: C:\msys64\mingw64\bin\opengl32.dll
strategy:
fail-fast: false
matrix:
Expand Down
10 changes: 0 additions & 10 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +0,0 @@
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)