Skip to content

Commit 033f3f5

Browse files
committed
Fix labext develop install
1 parent 3e0d3af commit 033f3f5

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

js/scripts/templates/py_top_level_init.mustache

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,11 @@ from {{ module.pyRelativePath }} import *
77
{{/each}}
88

99

10-
def _prefix():
11-
import sys
12-
from pathlib import Path
13-
prefix = sys.prefix
14-
here = Path(__file__).parent
15-
# for when in dev mode
16-
if (here.parent / 'setup.py').exists():
17-
prefix = here.parent
18-
return prefix
19-
2010

2111
def _jupyter_labextension_paths():
2212
return [{
23-
'src': f'{_prefix()}/share/jupyter/labextensions/{npm_pkg_name}/',
24-
'dest': f'{npm_pkg_name}',
13+
'src': 'labextension',
14+
'dest': npm_pkg_name,
2515
}]
2616

2717

0 commit comments

Comments
 (0)