Python: Shorten tree-sitter-python directory name

The current name results in a path that is more than 260 characters long,
and this causes issues for the build on Windows.
This commit is contained in:
Taus
2024-03-19 15:07:02 +00:00
parent 6f388acdd8
commit 38169a981d
23 changed files with 1 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
try {
module.exports = require("../../build/Release/tree_sitter_python_binding");
} catch (error1) {
if (error1.code !== 'MODULE_NOT_FOUND') {
throw error1;
}
try {
module.exports = require("../../build/Debug/tree_sitter_python_binding");
} catch (error2) {
if (error2.code !== 'MODULE_NOT_FOUND') {
throw error2;
}
throw error1
}
}
try {
module.exports.nodeTypeInfo = require("../../src/node-types.json");
} catch (_) {}