From 19fddb1e2db51283ecbaaf53749b43872b9785a7 Mon Sep 17 00:00:00 2001 From: 625781186 <625781186@qq.com> Date: Tue, 9 Jul 2019 18:43:58 +0800 Subject: [PATCH] Update README.md --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 8c72f40..f6c1fac 100644 --- a/README.md +++ b/README.md @@ -109,3 +109,21 @@ The GreenletGroup manages greenlets. It has several methods you may like. * `killall()` Kill all managed greenlets. + +### How to use pyinstaller package your project: +- 1. copy `hgoldfish` folder to your project && import modules to your main script . + +``` +# Because eventlet used dynamic import, pyinstaller could not find it. +from eventlet.hubs import epolls, kqueue, poll, selects +import eventlet +# I'm not install this package . I copy this module to my project. +import hgoldfish +from hgoldfish.utils import eventlet +``` + +![image.png](https://i.loli.net/2019/07/09/5d246faee709328092.png) + +- 2. solve `dns` module error: + +[pack with dynamically module](https://github.com/pyinstaller/pyinstaller/issues/2572#issuecomment-485849343)