if/else together, newest version setup.py
This commit is contained in:
parent
ae06855f35
commit
93940c99e7
2
setup.py
2
setup.py
@ -5,7 +5,7 @@ from cx_Freeze import setup, Executable
|
|||||||
# library.zip, also the FourmiCrawler map has to be copied to both the library and the exe.win32-2.7 folder. after
|
# library.zip, also the FourmiCrawler map has to be copied to both the library and the exe.win32-2.7 folder. after
|
||||||
# putting the files in the library the library has to be zipped and replace the old library.
|
# putting the files in the library the library has to be zipped and replace the old library.
|
||||||
# Dependencies are automatically detected, but it might need fine tuning.
|
# Dependencies are automatically detected, but it might need fine tuning.
|
||||||
build_exe_options = {"packages": ["os", "scrapy", "lxml", "w3lib", "pkg_resources", "zope.interface"], "excludes": []}
|
build_exe_options = {"packages": ["os", "scrapy", "lxml", "w3lib", "pkg_resources", "zope.interface", "twisted.internet"], "excludes": []}
|
||||||
|
|
||||||
# GUI applications require a different base on Windows (the default is for a
|
# GUI applications require a different base on Windows (the default is for a
|
||||||
# console application).
|
# console application).
|
||||||
|
@ -12,11 +12,9 @@ class SourceLoader:
|
|||||||
|
|
||||||
if hasattr(sys,'frozen'):
|
if hasattr(sys,'frozen'):
|
||||||
path = os.path.dirname(sys.executable)
|
path = os.path.dirname(sys.executable)
|
||||||
path += "\\" + rel_dir
|
|
||||||
known_parser = set()
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
path = os.path.dirname(os.path.abspath(__file__))
|
path = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
|
||||||
path += "\\" + rel_dir
|
path += "\\" + rel_dir
|
||||||
known_parser = set()
|
known_parser = set()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user