Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- try:
- # py2exe 0.6.4 introduced a replacement modulefinder.
- # This means we have to add package paths there, not to the built-in
- # one. If this new modulefinder gets integrated into Python, then
- # we might be able to revert this some day.
- # if this doesn't work, try import modulefinder
- try:
- import py2exe.mf as modulefinder
- except ImportError:
- import modulefinder
- import win32com, sys
- for p in win32com.__path__[1:]:
- modulefinder.AddPackagePath("win32com", p)
- for extra in ["win32com.shell"]: #,"win32com.mapi"
- __import__(extra)
- m = sys.modules[extra]
- for p in m.__path__[1:]:
- modulefinder.AddPackagePath(extra, p)
- except ImportError:
- # no build path setup, no worries.
- pass
- from distutils.core import setup
- import py2exe
- setup(
- name="Wifi Barcode Scaner Server",
- version="1.0a",
- description="Servidor para el scaner wifi",
- author="Ricardo D. Quiroga - MPI",
- #author="ricardoquiroga.dev@gmail.com",
- url="",
- license="GPL3",
- scripts=[
- "server.py",
- "bottle.py"
- ],
- console=["server.py"],
- options={
- "py2exe": {
- "compressed": 1,
- "optimize": 2,
- "ascii": 1,
- "bundle_files": 1
- },
- },
- zipfile=None
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement