Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit c20c4b3

Browse files
author
Simon Hofmann
committed
Changed condition to add bin dir to path
1 parent 6bc292e commit c20c4b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cv.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const opencvBuild = require(`@nut-tree/opencv-build-${process.platform}`);
33
const { resolvePath, linkSystemLibs } = require('./commons');
44

55
// ensure binaries are added to path on windows
6-
if (!linkSystemLibs() && process.platform === 'win32') {
6+
if (!linkSystemLibs() || process.platform === 'win32') {
77
// append opencv binary path to node process
88
if (!process.env.path.includes(opencvBuild.opencvBinDir)) {
99
process.env.path = `${process.env.path};${opencvBuild.opencvBinDir};`

0 commit comments

Comments
 (0)