Portál AbcLinuxu, 10. května 2025 07:01
Řešení dotazu:
#!/usr/bin/env python # -*- coding: utf-8 -*- import matplotlib import sys from cx_Freeze import setup, Executable # Dependencies are automatically detected, but it might need fine tuning. #build_exe_options = {"packages": ["os"], "excludes": ["tkinter"]} includefiles = [("msshareddlls/Microsoft.VC90.CRT.manifest", "Microsoft.VC90.CRT.manifest"), ("msshareddlls/msvcm90.dll", "msvcm90.dll"), ("msshareddlls/msvcp90.dll", "msvcp90.dll"), ("msshareddlls/msvcr90.dll", "msvcr90.dll"), ("src/ui/main.ui", "ui/main.ui"), ("gtk-data-files/etc", "etc"), ("gtk-data-files/lib", "lib"), ("gtk-data-files/share", "share")] build_exe_options = {"packages": ["os", "serial", "matplotlib", "matplotlib.backends", "matplotlib.backends.backend_qt4agg", "matplotlib.backends.backend_gtkagg"], "excludes": [""], "include_files": includefiles} #build_exe_options = {} # GUI applications require a different base on Windows (the default is for a # console application). base = None if sys.platform == "win32": base = "Win32GUI" setup( name = "ReflowControllerGUI", version = "1.0", description = "ReflowController data logging and setup application", options = {"build_exe": build_exe_options}, executables = [Executable("src/ReflowControllerGUI.py", base=base, icon="icon.ico")])
python -m SimpleHTTPServer
). Příkladem budiž i třeba hosting rosti.cz , který nabízí Python na straně serveru.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.