Skip to content

Commit

Permalink
Merge pull request #2 from hnb2/add_window_support
Browse files Browse the repository at this point in the history
Add window support
  • Loading branch information
jegger committed Jan 27, 2014
2 parents 2850a70 + 5ab1a3d commit 51255d8
Show file tree
Hide file tree
Showing 59 changed files with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,27 +33,38 @@
'{}{}.py{}'.format(platform(), BITS, PYVERSION)
)

# correctly locate libcef.so (we need to extend LD_LIBRARY_PATH for subprocess
# executable)
libcef_so = join(cef_dir, 'libcef.so')
subprocess = "subprocess"

# correctly locate libcef.so (we need to extend
# LD_LIBRARY_PATH for subprocess executable)
if platform() == 'linux':
libcef = join(cef_dir, 'libcef.so')
LD_LIBRARY_PATH = os.environ.get('LD_LIBRARY_PATH', None)
if not LD_LIBRARY_PATH:
LD_LIBRARY_PATH = cef_dir
else:
LD_LIBRARY_PATH += ',' + cef_dir
LD_LIBRARY_PATH += os.pathsep + cef_dir
os.putenv('LD_LIBRARY_PATH', LD_LIBRARY_PATH)
# Add the DLL and export the PATH for windows
elif platform() == 'win':
subprocess += ".exe"
libcef = join(cef_dir, 'libcef.dll')
PATH = os.environ.get('PATH', None)
if not PATH:
PATH = cef_dir
else:
PATH += os.pathsep + cef_dir
os.putenv('PATH', PATH)
else:
raise Exception('Unsupported/untested platform, please remove when its done.')

# extend the path to add the python extension
sys.path += [cef_dir]

print 'Going to import {}'.format(libcef_so)
if exists(libcef_so):
print 'Going to import {}'.format(libcef)
if exists(libcef):
# Import local module
ctypes.CDLL(libcef_so, ctypes.RTLD_GLOBAL)
ctypes.CDLL(libcef, ctypes.RTLD_GLOBAL)
if 0x02070000 <= sys.hexversion < 0x03000000:
import cefpython_py27 as cefpython
else:
Expand Down
Binary file added libs/win32.py2/cef.pak
Binary file not shown.
Binary file added libs/win32.py2/cefpython_py27.pyd
Binary file not shown.
Binary file added libs/win32.py2/icudt.dll
Binary file not shown.
Binary file added libs/win32.py2/libcef.dll
Binary file not shown.
Binary file added libs/win32.py2/locales/am.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/ar.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/bg.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/bn.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/ca.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/cs.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/da.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/de.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/el.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/en-GB.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/en-US.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/es-419.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/es.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/et.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/fa.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/fi.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/fil.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/fr.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/gu.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/he.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/hi.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/hr.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/hu.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/id.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/it.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/ja.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/kn.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/ko.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/lt.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/lv.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/ml.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/mr.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/ms.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/nb.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/nl.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/pl.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/pt-BR.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/pt-PT.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/ro.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/ru.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/sk.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/sl.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/sr.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/sv.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/sw.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/ta.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/te.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/th.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/tr.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/uk.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/vi.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/zh-CN.pak
Binary file not shown.
Binary file added libs/win32.py2/locales/zh-TW.pak
Binary file not shown.
Binary file added libs/win32.py2/subprocess.exe
Binary file not shown.

0 comments on commit 51255d8

Please sign in to comment.