Python 在使用cx\U freeze时,如何从一个Eclipse项目引用到另一个Eclipse项目
我有个问题 我有eclipse工作空间,它包含4个项目,每个项目引用另一个项目。当我需要使用cx\u Freeze创建一个可执行文件时,它不能将其他引用的项目导入其中吗 谢谢 我尝试了以下代码:Python 在使用cx\U freeze时,如何从一个Eclipse项目引用到另一个Eclipse项目,python,eclipse,cx-freeze,Python,Eclipse,Cx Freeze,我有个问题 我有eclipse工作空间,它包含4个项目,每个项目引用另一个项目。当我需要使用cx\u Freeze创建一个可执行文件时,它不能将其他引用的项目导入其中吗 谢谢 我尝试了以下代码: base = None from cx_Freeze import setup, Executable if sys.platform == "win32": base = "Win32GUI" exe = Executable( script="MyForm.py", bas
base = None
from cx_Freeze import setup, Executable
if sys.platform == "win32":
base = "Win32GUI"
exe = Executable(
script="MyForm.py",
base="Win32GUI",packages=['QtCore', 'QtGui', 'QtSvg','tkinter','time','os','cls_MyForm','threading','sys','DAL','FS_Watch_Collection'],
compress=False, copyDependentFiles=False)
setup(
name = "First Version of File Watcher",
version = "1",
description = "File Watcher Program",
executables = [exe])
from cx_Freeze import setup, Executable
#http://www.youtube.com/watch?v=XHcDHSWRCRQ
#http://www.python-forum.org/pythonforum/viewtopic.php?f=4&t=34501&hilit=cxfreeze
includefiles = ['README.txt', 'CHANGELOG.txt']
includes = []
excludes = ['tkinter']
packages = ['pk_LocalStore','QtCore', 'QtGui', 'QtSvg','time','os','threading','sys']
setup(
name = 'First Version of File Watcher',
version = '0.1',
description = 'File Watcher Program',
author = 'ITE CO',
author_email = 'info@from-masr.com',
options = {'build_exe': {'excludes':excludes,'packages':packages,'include_files':includefiles}},
executables = [Executable('MyForm.py')]
)
该代码:
base = None
from cx_Freeze import setup, Executable
if sys.platform == "win32":
base = "Win32GUI"
exe = Executable(
script="MyForm.py",
base="Win32GUI",packages=['QtCore', 'QtGui', 'QtSvg','tkinter','time','os','cls_MyForm','threading','sys','DAL','FS_Watch_Collection'],
compress=False, copyDependentFiles=False)
setup(
name = "First Version of File Watcher",
version = "1",
description = "File Watcher Program",
executables = [exe])
from cx_Freeze import setup, Executable
#http://www.youtube.com/watch?v=XHcDHSWRCRQ
#http://www.python-forum.org/pythonforum/viewtopic.php?f=4&t=34501&hilit=cxfreeze
includefiles = ['README.txt', 'CHANGELOG.txt']
includes = []
excludes = ['tkinter']
packages = ['pk_LocalStore','QtCore', 'QtGui', 'QtSvg','time','os','threading','sys']
setup(
name = 'First Version of File Watcher',
version = '0.1',
description = 'File Watcher Program',
author = 'ITE CO',
author_email = 'info@from-masr.com',
options = {'build_exe': {'excludes':excludes,'packages':packages,'include_files':includefiles}},
executables = [Executable('MyForm.py')]
)
但是它不能正常工作cx\u Freeze对Eclipse项目一无所知,所以您可能需要将包文件夹放在Python正常导入机制可以找到的地方。先生,让我解释一下我的问题。。。现在,我有4个项目,有一个相互之间的参考。。。现在我从另一个项目导入了一些类,现在我需要这些导入的类在我制作可执行文件时随我一起提供???怎样