FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cefpython/src/mac/installer/__init__.py.template at cefpython53 · pythonthings/cefpython · GitHub
pythonthings
cefpython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cefpython
/
src
/
mac
/
installer
/
__init__.py.template
Copy path
More file actions
More file actions
Latest commit
History
History
History
28 lines (22 loc) · 934 Bytes
Breadcrumbs
cefpython
/
src
/
mac
/
installer
/
__init__.py.template
Copy path
File metadata and controls
28 lines (22 loc) · 934 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
__all__ = ["cefpython", "wx"]
__version__ = "%(APP_VERSION)s"
__author__ = "The CEF Python authors"
import os
import ctypes
package_dir = os.path.dirname(os.path.abspath(__file__))
# On Mac it works without setting library paths, but let's set it
# just to be sure.
os.environ["LD_LIBRARY_PATH"] = package_dir
os.environ["DYLD_LIBRARY_PATH"] = package_dir
# This env variable will be returned by cefpython.GetModuleDirectory().
os.environ["CEFPYTHON3_PATH"] = package_dir
# This loads the libcef.so library for the main python executable.
# The libffmpegsumo.so library shouldn't be loaded here, it could
# cause issues to load it in the browser process.
libcef_so = os.path.join(package_dir, "libcef.dylib")
ctypes.CDLL(libcef_so, ctypes.RTLD_GLOBAL)
import sys
if 0x02070000 <= sys.hexversion < 0x03000000:
from . import cefpython_py27 as cefpython
else:
raise Exception("Unsupported python version: " + sys.version)
Back
|
FazBrowse Home
|
New Git URL