Ver código fonte

include .tcl files in tk package

rdb 13 anos atrás
pai
commit
14c0178225
1 arquivos alterados com 9 adições e 1 exclusões
  1. 9 1
      direct/src/p3d/thirdparty.pdef

+ 9 - 1
direct/src/p3d/thirdparty.pdef

@@ -41,6 +41,13 @@ class tk(package):
            'direct.tkpanels',
            'direct.tkwidgets')
 
+    try:
+        from Tkinter import Tcl
+        dir = Filename.fromOsSpecific(Tcl().eval("info library"))
+        file(Filename(dir, "*.tcl"), extract = True)
+    except ImportError:
+        pass
+
     try:
         import Pmw
     except ImportError:
@@ -51,7 +58,8 @@ class tk(package):
         sys.modules['Pmw'] = Pmw
         sys.modules['Pmw'].__name__ = 'Pmw'
         module('Pmw', 'Pmw.Pmw_1_3.lib.*')
-        file(Filename(Pmw.__path__[0], 'Pmw_1_3/lib/Pmw.def'), newDir = 'Pmw/Pmw_1_3/lib')
+        path = Filename.fromOsSpecific(Pmw.__path__[0])
+        file(Filename(path, 'Pmw_1_3/lib/Pmw.def'), newDir = 'Pmw/Pmw_1_3/lib')
 
 class sqlite(package):
     config(display_name = "SQLite Interface")