[yt-svn] commit/yt: jzuhone: Merged in ngoldbaum/yt (pull request #2200)
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Fri Jun 10 09:04:13 PDT 2016
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/40651a894708/
Changeset: 40651a894708
Branch: yt
User: jzuhone
Date: 2016-06-10 16:03:56+00:00
Summary: Merged in ngoldbaum/yt (pull request #2200)
work around glfw changing the working directory on OSX
Affected #: 1 file
diff -r 40287d59199ee61f6dadfdbb3d3c612f064c69d5 -r 40651a894708e5cddcfc8cbfa287877c304b0de8 yt/visualization/volume_rendering/interactive_loop.py
--- a/yt/visualization/volume_rendering/interactive_loop.py
+++ b/yt/visualization/volume_rendering/interactive_loop.py
@@ -14,6 +14,8 @@
# This is a part of the experimental Interactive Data Visualization
+import os
+
import cyglfw3 as glfw
import numpy as np
import OpenGL.GL as GL
@@ -116,7 +118,11 @@
'''
should_quit = False
def __init__(self, width=1024, height=1024, title="vol_render"):
+ curdir = os.getcwd()
glfw.Init()
+ # glfw sometimes changes the current working directory, see
+ # https://github.com/adamlwgriffiths/cyglfw3/issues/21
+ os.chdir(curdir)
glfw.WindowHint(glfw.CONTEXT_VERSION_MAJOR, 3)
glfw.WindowHint(glfw.CONTEXT_VERSION_MINOR, 3)
glfw.WindowHint(glfw.OPENGL_FORWARD_COMPAT, True)
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list