Skip to content

Commit ba3d02d

Browse files
committed
create _package.py for storing package name info
1 parent f0da3d4 commit ba3d02d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

pythreejs/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from ._version import version_info, __version__
2+
from ._package import npm_pkg_name, py_pkg_name
23

34
from .pythreejs import (
45
Texture,
@@ -139,6 +140,6 @@ def _jupyter_nbextension_paths():
139140
return [{
140141
'section': 'notebook',
141142
'src': 'static',
142-
'dest': 'jupyter-threejs',
143-
'require': 'jupyter-threejs/extension'
143+
'dest': npm_pkg_name,
144+
'require': npm_pkg_name + '/extension'
144145
}]

pythreejs/_package.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
npm_pkg_name = 'jupyter-threejs'
2+
py_pkg_name = 'pythreejs'
3+

0 commit comments

Comments
 (0)