Skip to content

Commit d724552

Browse files
author
Matthieu Kern
committed
Use process.cwd() instead of __dirname for DLL loading to be compatible with zeit/pkg
1 parent f500fc9 commit d724552

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1341,7 +1341,7 @@ var dll = get_dll();
13411341
if(dll === null)
13421342
throw new Error('autoit can not run on this platform!');
13431343

1344-
var autoit_dll = ffi.Library(path.join(__dirname, dll), autoit_functions);
1344+
var autoit_dll = ffi.Library(path.join(process.cwd(), dll), autoit_functions);
13451345

13461346
function modify_func(func){
13471347
var old_func = autoit_dll[func];

0 commit comments

Comments
 (0)