Skip to content

Commit aedb470

Browse files
committed
Allow providing CEF_BINARY path as environment variable for CEF library.
1 parent ec78baa commit aedb470

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/linux/compile.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,11 @@
108108
SETUP_DIR = os.path.abspath(os.path.join(LINUX_DIR, "setup"))
109109
CEFPYTHON_DIR = os.path.abspath(os.path.join(SRC_DIR, ".."))
110110
BUILD_DIR = os.path.abspath(os.path.join(CEFPYTHON_DIR, "build"))
111-
CEF_BINARY = os.path.abspath(os.path.join(BUILD_DIR, "cef_"+OS_POSTFIX2))
112111
CEFPYTHON_BINARY = os.path.abspath(os.path.join(BUILD_DIR,
113112
"cefpython_"+OS_POSTFIX2))
113+
CEF_BINARY = os.environ.get('CEF_BINARY')
114+
if not CEF_BINARY or not os.path.exists(CEF_BINARY):
115+
CEF_BINARY = os.path.abspath(os.path.join(BUILD_DIR, "cef_"+OS_POSTFIX2))
114116

115117
# Create directories if necessary
116118
if not os.path.exists(CEFPYTHON_BINARY):

0 commit comments

Comments
 (0)