本文整理汇总了Python中bbfreeze.Freezer.addModule方法的典型用法代码示例。如果您正苦于以下问题:Python Freezer.addModule方法的具体用法?Python Freezer.addModule怎么用?Python Freezer.addModule使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类bbfreeze.Freezer
的用法示例。
在下文中一共展示了Freezer.addModule方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Freezer
# 需要导入模块: from bbfreeze import Freezer [as 别名]
# 或者: from bbfreeze.Freezer import addModule [as 别名]
from bbfreeze import Freezer
import sys, os, shutil
shutil.rmtree('peatdb', ignore_errors=True)
path=os.path.abspath('../../..')
peatpath=os.path.abspath('../../../PEATDB')
version = '2.0'
f = Freezer('peatdb', excludes=('wx'))
f.addScript(os.path.join(peatpath, "PEATApp.py"))
f.addScript(os.path.join(peatpath, "Ekin/Ekin_main.py"))
f.addScript(os.path.join(peatpath, "Ekin/ModelDesign.py"))
f.addScript(os.path.join(peatpath, "DNAtool/DNAtool.py"))
#these lines allow the plugins to work
f.addModule('PEATDB.PEATApp')
f.addModule('PEATDB.plugins.PEATSAplugin')
f.addModule('PEATSA.WebApp.Data')
f.addModule('PEATSA.Database')
m=f.mf
f() # runs the freezing process
'''post freeze'''
#mpl data
import matplotlib
mpldir = matplotlib.get_data_path()
datadir = 'peatdb/mpl-data'
shutil.copytree(mpldir, datadir)
#add peat resource files
resources = ['PEATDB/DNAtool/restriction_enzymes.DAT',
示例2: Freezer
# 需要导入模块: from bbfreeze import Freezer [as 别名]
# 或者: from bbfreeze.Freezer import addModule [as 别名]
import sys, os, shutil
shutil.rmtree('datapipeline', ignore_errors=True)
path=os.path.abspath('../../..')
pipepath=os.path.abspath('../../../DataPipeline')
peatpath=os.path.abspath('../../../PEATDB')
version = '1.2'
f = Freezer('datapipeline', excludes=('wx'))
f.addScript(os.path.join(pipepath, "PipelineApp.py"))
f.addScript(os.path.join(pipepath, "PipelineCommand.py"))
f.addScript(os.path.join(peatpath, "Ekin/ModelDesign.py"))
f.addScript(os.path.join(peatpath, "Ekin/Ekin_main.py"))
#these lines allow the plugins to work
f.addModule('PEATDB.PEATApp')
m=f.mf
f() # runs the freezing process
'''post freeze'''
#mpl data
import matplotlib
mpldir = matplotlib.get_data_path()
datadir = 'datapipeline/mpl-data'
shutil.copytree(mpldir, datadir)
#add resource files
resources = ['DataPipeline/app.ico',
'DataPipeline/modeldesign.ico',
'PEATDB/Ekin/Ekin.ico',
示例3: System
# 需要导入模块: from bbfreeze import Freezer [as 别名]
# 或者: from bbfreeze.Freezer import addModule [as 别名]
from bbfreeze import Freezer
from sx.system import System
system = System()
include = (
"sx",
'__future__',
#'rpm',
'os',
'sys',
'distutils',
'docopt',
'time',
'logging',
'subprocess',
'pipes',
'platform',
'webbrowser',
'socket',
're',
)
f = Freezer("merlin.%s" % system.arch , includes=include)
f.addScript("merlin.py")
f.addModule('rpm')
f()
示例4: Freezer
# 需要导入模块: from bbfreeze import Freezer [as 别名]
# 或者: from bbfreeze.Freezer import addModule [as 别名]
for file in args.mods:
if not os.path.isfile(file):
print '%s does not exist, exiting!' % file
sys.exit(1)
(name, ext) = os.path.splitext(os.path.basename(file))
if ext.lower() == '.rs5mod':
order.append(name)
print 'Mod order:', order
from bbfreeze import Freezer
f = Freezer(args.dest)
f.include_py = False
f.addScript("miaspatch.py", gui_only=True)
for patch in binary_patches:
f.addModule(patch)
f()
src = os.path.join('communitypatch', 'communitypatch.miasmod')
dst = os.path.join(args.dest, 'communitypatch.miasmod')
shutil.copyfile(src, dst)
src = os.path.join('communitypatch', 'main')
dst = os.path.join(args.dest, 'communitypatch.rs5mod')
extractor.create_rs5(dst, [src], True)
for file in args.mods:
dst = os.path.join(args.dest, os.path.basename(file))
shutil.copyfile(file, dst)
if args.language is not None: