import os
import sys
from cefpython3 import cefpython as cef
def main():
sys.excepthook = cef.ExceptHook # To shutdown all CEF processes on error
cef.Initialize()
u = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'app', 'webgl_loader_gltf.html')
cef.CreateBrowserSync(url=u,
window_title="three.js webgl - GLTFloader",
settings={'file_access_from_file_urls_allowed': True})
cef.MessageLoop()
cef.Shutdown()
if __name__ == '__main__':
main()