测试编码
parent
ea68c1e5f5
commit
3a38df12a9
|
@ -1,6 +1,7 @@
|
|||
import re
|
||||
import RunCMD
|
||||
from RunCMD import run_cmd
|
||||
import cchardet
|
||||
|
||||
class DevicesInfo():
|
||||
|
||||
|
@ -33,7 +34,9 @@ class DevicesInfo():
|
|||
devices_output_copy = devices_output[0:]
|
||||
devices_txt = ''
|
||||
for txt in devices_output_copy:
|
||||
devices_txt += txt.decode('utf-8').replace(r'\r\n','')
|
||||
# charset = cchardet.detect(txt)
|
||||
# if charset
|
||||
devices_txt += txt.decode('utf-8','ignore').replace(r'\r\n','')
|
||||
# print(dir(re))
|
||||
print(devices_txt)
|
||||
results = re.findall(r'\[[^\]]+\]([^\[]+)',devices_txt)
|
||||
|
|
|
@ -3,6 +3,7 @@ from cx_Freeze import setup, Executable
|
|||
|
||||
# Dependencies are automatically detected, but it might need fine tuning.
|
||||
build_exe_options = { 'include_files':['resource','ffmpeg-shared']}
|
||||
install_exe_options = { 'install_dir' : 'd:\\record-camera-and-screen', 'build_dir':'build', 'install_exe':'d:\\record-camera-and-screen'}
|
||||
|
||||
# GUI applications require a different base on Windows (the default is for a
|
||||
# console application).
|
||||
|
@ -11,7 +12,7 @@ if sys.platform == "win32":
|
|||
base = "Win32GUI"
|
||||
|
||||
executables = [
|
||||
Executable('RecordWindow.py', base=base, icon = 'resource/gutin.ico')
|
||||
Executable('RecordWindow.py', base=base, icon = 'resource/gutin.ico', targetName = 'RecordWindow.exe')
|
||||
]
|
||||
setup( name = "Gutin谷田会议视频录播管理系统",
|
||||
version = "0.2",
|
||||
|
|
Loading…
Reference in New Issue