Skip to content

Commit

Permalink
Add windows togl3 files.
Browse files Browse the repository at this point in the history
  • Loading branch information
culler committed Jan 16, 2024
1 parent cb71037 commit 3d63509
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
6 changes: 3 additions & 3 deletions opengl/CyOpenGL.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ class RawOpenGLWidget(Tk_.Widget, Tk_.Misc):

curr_platform = sys.platform
cpu_width = platform.architecture()[0]
if curr_platform[:5] == 'linux2':
if curr_platform.startswith('linux2'):
curr_platform = 'linux'
if curr_platform == 'win32':
current_platform = 'windows'
elif curr_platform == 'win32':
curr_platform = 'windows'
Togl_path = os.path.join(Togl_dir, curr_platform)
if not os.path.exists(Togl_path):
raise RuntimeError('Togl directory "%s" missing.' % Togl_path)
Expand Down
2 changes: 1 addition & 1 deletion python/sage_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
try:
import sage.all
_within_sage = True
except ImportError:
except ModuleNotFoundError :
_within_sage = False
import decorator

Expand Down
Binary file added python/togl3/windows/Togl3.0/Togl30t.dll
Binary file not shown.
5 changes: 5 additions & 0 deletions python/togl3/windows/Togl3.0/pkgIndex.tcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
if {[package vsatisfies [package provide Tcl] 9.0-]} {
package ifneeded Togl 3.0 [list load [file join $dir tcl9Togl30t.dll]]
} else {
package ifneeded Togl 3.0 [list load [file join $dir Togl30t.dll]]
}

0 comments on commit 3d63509

Please sign in to comment.