[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Fri Jun 10 09:04:20 PDT 2016
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/8a2847f856bc/
Changeset: 8a2847f856bc
Branch: yt
User: ngoldbaum
Date: 2016-05-27 18:02:34+00:00
Summary: work around glfw changing the working directory on OSX
Affected #: 1 file
diff -r b8a09cd382dd34f386ce3634e7f78df3f5d9401d -r 8a2847f856bc6b4dde8cb2f299818c812b2a2730 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)
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