From 5bd556f13822869d80540c86be694e24e86dc89f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=96=84=E7=9A=AE=E5=B0=8F=E7=AC=BC=E5=8C=85?= Date: Mon, 31 Aug 2020 22:22:04 +0800 Subject: [PATCH] opt code for pyinstaller --- pkgship.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgship.spec b/pkgship.spec index 60f7ced..2ed4527 100755 --- a/pkgship.spec +++ b/pkgship.spec @@ -56,7 +56,7 @@ else exit fi -$path -F pkgship.p +$path -F pkgship.py sed -i "s/hiddenimports\=\[\]/hiddenimports\=\['pkg_resources.py2_warn'\]/g" pkgship.spec $path pkgship.spec cp dist/pkgship /usr/bin/