Skip to content

Commit 749c6cc

Browse files
committed
fixed bazel pathing
1 parent 984aefd commit 749c6cc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • javascript/node/selenium-webdriver/lib

javascript/node/selenium-webdriver/lib/http.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
'use strict';
2727

28+
const path = require('path')
2829
const cmd = require('./command');
2930
const error = require('./error');
3031
const logging = require('./logging');
@@ -53,7 +54,8 @@ function requireAtom(module, bazelTarget) {
5354
} catch (ex) {
5455
try {
5556
const file = bazelTarget.slice(2).replace(':', '/');
56-
return require(`../../../../bazel-genfiles/${file}`);
57+
console.log(`../../../bazel-bin/${file}`)
58+
return require(path.resolve(`../../../bazel-bin/${file}`));
5759
} catch (ex2) {
5860
console.log(ex2);
5961
throw Error(

0 commit comments

Comments
 (0)