We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5a5bc6 commit 80a9973Copy full SHA for 80a9973
setup.py
@@ -1,8 +1,6 @@
1
-from os import chdir
2
import re
3
import sys
4
from pathlib import Path
5
-from glob import iglob
6
7
import setuptools
8
@@ -13,15 +11,11 @@
13
11
14
12
15
def get_data_files():
16
- chdir(str(LABEXTENSIONS_DIR))
17
-
18
extension_files = [
19
- (str(LABEXTENSIONS_INSTALL_DIR / Path(filename).parent), [str(LABEXTENSIONS_DIR / filename)])
20
- for filename in iglob('**/*.*', recursive=True)
+ (str(LABEXTENSIONS_INSTALL_DIR / file.relative_to(LABEXTENSIONS_DIR)), [str(file)])
+ for file in LABEXTENSIONS_DIR.rglob("*.*")
21
]
22
23
- chdir('../../../')
24
25
extension_files.append(("etc/jupyter/jupyter_notebook_config.d", ["py_src/jupyter_lsp/etc/jupyter-lsp-serverextension.json"]))
26
27
return extension_files
0 commit comments