search

Home  >  Q&A  >  body text

python2的 pyinstaller 如何打包配置文件?

主入口是itchat5.py 然后这个文件引入一个当前目录的config.py的配置文件,配置文件可能要在日后修改,请问大神们,这样应该如何打包?

阿神阿神2767 days ago874

reply all(1)I'll reply

  • 阿神

    阿神2017-04-18 10:17:49

    Is it packaged into an exe? It can be packaged into a tree directory, and then just use relative paths. 'config.py' can be accessed directly, and a stand-alone EXE is also possible.

    reply
    0
  • Cancelreply