-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathmain.py
More file actions
24 lines (19 loc) · 683 Bytes
/
main.py
File metadata and controls
24 lines (19 loc) · 683 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env python
import sys
import os
import multiprocessing
if getattr(sys, "frozen", False):
if not sys.platform.startswith("win"):
raise "Executable is only supported on Windows"
# need to call this so that code in __init__ of ffpyplayer
# doesn't encounter a None in site.USER_BASE
import site
site.getuserbase()
# need to put packaged ffmpeg binaries (dlls) on path
p = os.path.join(os.path.dirname(sys.executable),'lib')
os.environ["PATH"] = p + os.pathsep + os.environ["PATH"]
os.add_dll_directory(p)
if __name__=="__main__":
multiprocessing.freeze_support()
import glassesValidator
glassesValidator.GUI.run()