Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
.idea/
.idea/
__pycache__/
*.log
config.ini
__init__.pyc
*.pyc
7 changes: 7 additions & 0 deletions flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
from core.common import raw_decompress
import gzip, json
import io, sys, time
import platform

TOOL_REQ_URL = {
'ffmpeg': 'https://ffmpeg.zeranoe.com/builds/win64/static/ffmpeg-3.2-win64-static.zip',
Expand Down Expand Up @@ -123,6 +124,9 @@ def unzip_ffmpeg(zipfile):
@staticmethod
def checkFfmpeg():
dlm = nbdler.Manager()
if (platform.system()!='Windows'):
print('非windows系统请自行安装ffmpeg')
return True
if (not os.path.exists('ffmpeg.exe') or os.path.exists('ffmpeg.exe.nbdler')) and not os.path.exists(cv.FFMPEG_PATH):
dlg = wx.MessageDialog(None, u'该程序需要ffmpeg.exe才能完成工作,是否要下载?', u'提示', wx.YES_NO | wx.ICON_INFORMATION)
if dlg.ShowModal() != wx.ID_YES:
Expand Down Expand Up @@ -152,6 +156,9 @@ def checkFfmpeg():
@staticmethod
def checkNode():
dlm = nbdler.Manager()
if (platform.system()!='Windows'):
print('非windows系统请自行安装node')
return True
if not os.path.exists('node.exe') or os.path.exists('node.exe.nbdler'):
dlg = wx.MessageDialog(None, u'该程序需要Nodejs.exe才能完成工作,是否要下载?', u'提示', wx.YES_NO | wx.ICON_INFORMATION)
if dlg.ShowModal() != wx.ID_YES:
Expand Down
2 changes: 1 addition & 1 deletion gui/about.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

# -*- coding: UTF-8 -*-
import wx
import wx.adv

Expand Down