Browse Source

makepanda: add __version__ attribute to panda3d module

rdb 8 years ago
parent
commit
b865b31390
1 changed files with 3 additions and 1 deletions
  1. 3 1
      makepanda/makepanda.py

+ 3 - 1
makepanda/makepanda.py

@@ -2702,7 +2702,9 @@ for basename in del_files:
 
 
 # Write an appropriate panda3d/__init__.py
 # Write an appropriate panda3d/__init__.py
 p3d_init = """"Python bindings for the Panda3D libraries"
 p3d_init = """"Python bindings for the Panda3D libraries"
-"""
+
+__version__ = '%s'
+""" % (WHLVERSION)
 
 
 if GetTarget() == 'windows':
 if GetTarget() == 'windows':
     p3d_init += """
     p3d_init += """