Skip to content

Commit 5611987

Browse files
committed
Refactor: use pathlib to construct more paths
1 parent 11a2a08 commit 5611987

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

setup.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,16 @@
4242
)
4343
cmdclass['js'] = combine_commands(
4444
install_npm(
45-
path=HERE/'js',
46-
build_dir=HERE/'name'/'static',
47-
source_dir=HERE/'js',
45+
path=str(HERE/'js'),
46+
build_dir=str(HERE/'name'/'static'),
47+
source_dir=str(HERE/'js'),
4848
build_cmd='build:all'
4949
),
5050
ensure_targets([
51-
name + '/static/extension.js',
52-
name + '/static/index.js',
53-
'js/src/core/BufferAttribute.autogen.js',
54-
name + '/core/BufferAttribute_autogen.py',
51+
str(HERE/name/'static'/'extension.js'),
52+
str(HERE/name/'static'/'index.js'),
53+
str(HERE/'js'/'src'/'core'/'BufferAttribute.autogen.js'),
54+
str(HERE/name/'core'/'BufferAttribute_autogen.py'),
5555
]),
5656
)
5757

0 commit comments

Comments
 (0)