Skip to content

Commit 39b6897

Browse files
committed
Fixed Linux PhantomJS executable.
1 parent 60003ab commit 39b6897

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

acstis/helpers/BrowserHelper.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,11 @@ def __get_phantomjs_driver():
182182
return BrowserHelper.__phantomjs_driver
183183

184184
path = os.path.dirname(os.path.abspath(__file__))
185+
bits = ctypes.sizeof(ctypes.c_voidp)
186+
x = "32" if bits == 4 else "64"
185187

186188
if sys.platform == "linux" or sys.platform == "linux2":
187-
file = path + "/../phantomjs/linux-2.1.1"
189+
file = path + "/../phantomjs/linux" + x + "-2.1.1"
188190
elif sys.platform == "darwin":
189191
file = path + "/../phantomjs/mac-2.1.1"
190192
elif sys.platform == "win32":
File renamed without changes.

acstis/phantomjs/linux64-2.1.1

64.8 MB
Binary file not shown.

0 commit comments

Comments
 (0)