Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkaban authored Mar 29, 2020
1 parent 96bc652 commit f52cbe1
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 9 deletions.
18 changes: 9 additions & 9 deletions filtr.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ def filter(NameProg):
edited_NameProg = edited_NameProg.replace(n, '')
i = 0
cifri=("1", "2", "3", "4", "5", "6", "7", "8", "9")
while i < 100: #Фильтруем 10, 21 и т.п.
for cifra in cifri:
f = str(i) + cifra
f = " " + f
if edited_NameProg.find(f, 0, len(edited_NameProg)) >= 1:
n = edited_NameProg[edited_NameProg.find(f):]
edited_NameProg = edited_NameProg.replace(n, '')
i += 1
i = 0
while i < 100: #Фильтруем 11.1 и т.п.
for cifra in cifri:
f = str(i) + "."
Expand All @@ -49,15 +58,6 @@ def filter(NameProg):
n = edited_NameProg[edited_NameProg.find(f2):]
edited_NameProg = edited_NameProg.replace(n, '')
i += 1
i = 0
while i < 100: #Фильтруем 10, 21 и т.п.
for cifra in cifri:
f = str(i) + cifra
f = " " + f
if edited_NameProg.find(f, 0, len(edited_NameProg)) >= 1:
n = edited_NameProg[edited_NameProg.find(f):]
edited_NameProg = edited_NameProg.replace(n, '')
i += 1

VS_spisok=(" 2015", " 2016", " 2017", " 2018", " 2019", " 2007", " 2008", " 2009", " 2010", " 2011", " 2012",
" 2013", " 2014", " 2020", " 2021", " 2022") #Чтобы исключить некорректную фильтрацию из Microsoft Visual Studio
Expand Down
51 changes: 51 additions & 0 deletions setup.pyw
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# coding: utf-8

from cx_Freeze import setup, Executable
import sys

excludes = ['asyncio', '', 'collections', 'concurrent', 'distutils', 'email', 'PyQt5',
'shiboken2', 'test', 'unittest', 'libcrypto-1_1']

#executables = [Executable('main.pyw',
# targetName='exe/LicenseCheker.exe',
# base='Win32GUI',
# icon='data/LicenseCheker.ico')]
include_files = ['data']

base = None
if sys.platform == "win32":
base = "Win32GUI"

if 'bdist_msi' in sys.argv:
sys.argv += ['--initial-target-dir', 'C:\\LicenseCheker']

options = {
'build_msi': {
'include_msvcr': True,
'include_files': include_files,
"excludes": excludes,
'initial_target_dir': 'C:\\LicenseCheker',
}
}

setup(name='LicenseCheker',
version='0.2',
description='LicenseCheker',
options=options,
executables = [
Executable(
script = "main.pyw",
copyright="КонтинентСвободы.рф",
base=base,
icon="data/LicenseCheker.ico",
shortcutName="LicenseCheker",
shortcutDir="DesktopFolder",
)
]
)

# команда для CMD
#python.exe setup.pyw bdist_msi
#--ext-list-file=data/Lpro.db, LicenseCheker.png, LicenseCheker.ico -icon=LicenseCheker.ico

# cd /d D:\Public\LicenseCheker\0.2

0 comments on commit f52cbe1

Please sign in to comment.