当前位置: 首页>>代码示例>>Python>>正文


Python bundlebuilder.start函数代码示例

本文整理汇总了Python中sugar.activity.bundlebuilder.start函数的典型用法代码示例。如果您正苦于以下问题:Python start函数的具体用法?Python start怎么用?Python start使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了start函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1:

#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start("TatetiMesh")
开发者ID:mllofriu,项目名称:tateti,代码行数:4,代码来源:setup.py

示例2:

#!/usr/bin/env python

from sugar.activity import bundlebuilder
bundlebuilder.start('Gambiarra')
开发者ID:Lasanha,项目名称:Gambiarra,代码行数:4,代码来源:setup.py

示例3: ConfigParser

#!/usr/bin/env python
from sugar.activity import bundlebuilder
from ConfigParser import ConfigParser
parser = ConfigParser()
parser.read("activity/activity.info")
name = parser.get('Activity', 'name')
bundlebuilder.start(name)
开发者ID:sugarlabs,项目名称:supertux-activity,代码行数:7,代码来源:setup.py

示例4:

#!/usr/bin/env python
try:
	from sugar.activity import bundlebuilder
	bundlebuilder.start("BundleActivity")
except ImportError:
	import os
	os.system("find ./ | sed 's,^./,gtktest.activity/,g' > MANIFEST")
	os.system('rm gtktest.xo')
	os.chdir('..')
	os.system('zip -r gtktest.xo gtktest.activity')
	os.system('mv gtktest.xo ./gtktest.activity')
	os.chdir('gtktest.activity')
开发者ID:Bundloleers,项目名称:bundle,代码行数:12,代码来源:setup.py

示例5: Copyright

#!/usr/bin/env python

# Copyright (C) 2006, Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start('Tuxmath')
开发者ID:Daksh,项目名称:tuxmath,代码行数:21,代码来源:setup.py

示例6: Copyright

#!/usr/bin/env python

# Copyright (C) 2009, Simon Schampijer
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

from sugar.activity import bundlebuilder

bundlebuilder.start("Kiwix")
开发者ID:CloudyDino,项目名称:Kiwix.activity,代码行数:21,代码来源:setup.py

示例7:

#!/usr/bin/env python
try:
	from sugar.activity import bundlebuilder
	bundlebuilder.start("ClassroomPresenter")
except ImportError:
	import os
	#os.system("find ./ | sed 's,^./,ClassroomPresenter.activity/,g' > MANIFEST")
	os.system('rm ClassroomPresenter.xo')
	os.chdir('..')
	os.system('zip -r ClassroomPresenter.xo ClassroomPresenter.activity')
	os.system('mv ClassroomPresenter.xo ./ClassroomPresenter.activity')
	os.chdir('ClassroomPresenter.activity')
开发者ID:Daksh,项目名称:showntell,代码行数:12,代码来源:setup.py

示例8:

#!/usr/bin/env python

# Make the MANIFEST file.  The contents of the activity folder and the NEWS and MANIFEST
# files are already included in the .xo file which the bundlebuilder creates, so don't
# add them to the manifest file.
import os
os.system("find ./ -name 'activity' -prune -o -name 'NEWS' -prune -o -name 'MANIFEST' -prune \
-o -name '.svn' -prune -o -name '*.pyc' -prune -o -name '*.xo' -prune -o -type f -print > MANIFEST")

from sugar.activity import bundlebuilder
bundlebuilder.start("Geoquiz")
开发者ID:gmccreight,项目名称:geoquiz,代码行数:11,代码来源:setup.py

示例9: Copyright

#!/usr/bin/python

# Copyright (C) 2006, Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

from sugar.activity import bundlebuilder
bundlebuilder.start('VncLauncher')
开发者ID:sugarlabs,项目名称:VncLauncher,代码行数:20,代码来源:setup.py

示例10:

#!/usr/bin/python
from sugar.activity import bundlebuilder
bundlebuilder.start('Frotz')

开发者ID:sugarlabs,项目名称:Frotz,代码行数:3,代码来源:setup.py

示例11: Copyright

#!/usr/bin/env python

# Copyright (C) 2006, Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

try:
  from sugar.activity import bundlebuilder
  bundlebuilder.start("JokeMachine")
except ImportError:
  print 'Cannot find a working sugar environment'

开发者ID:Daksh,项目名称:joke-machine,代码行数:23,代码来源:setup.py

示例12: Copyright

#!/usr/bin/env python

# Copyright (C) 2006, Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

from sugar.activity import bundlebuilder

if __name__ == "__main__":
	bundlebuilder.start('ceibalchess')
开发者ID:alesegovia,项目名称:ceibal-chess,代码行数:22,代码来源:setup.py

示例13: Copyright

#!/usr/bin/env python

# Copyright (C) 2006, Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

from sugar.activity import bundlebuilder
bundlebuilder.start('JigsawPuzzle')
开发者ID:Daksh,项目名称:jigsaw-puzzle,代码行数:20,代码来源:setup.py

示例14:

#!/usr/bin/python

# Make the MANIFEST file.  The contents of the activity folder and the NEWS and MANIFEST
# files are already included in the .xo file which the bundlebuilder creates, so don't
# add them to the manifest file.
import os
##os.system("find ./ -name 'activity' -prune -o -name 'NEWS' \
##                                    -prune -o -name 'MANIFEST' \
##                                    -prune -o -name '.svn' \
##                                    -prune -o -name '*.pyc' \
##                                    -prune -o -name '*.xo' \
##                                    -prune -o -name '*.swp' \
##                                    -prune -o -name '.git*' \
##                                    -prune -o -type f \
##                   -print > MANIFEST") 

from sugar.activity import bundlebuilder
bundlebuilder.start("SocialCalcActivity")
开发者ID:seetadev,项目名称:SocialCalc-1,代码行数:18,代码来源:setup.py

示例15: setup

                if not os.path.isdir(mo_path):
                    os.makedirs(mo_path)

                mo_file = os.path.join(mo_path, 'org.laptop.TurtleArtActivity.mo')
                retcode = subprocess.call(['msgfmt', '--output-file=%s' % mo_file, file_name])
                if retcode:
                    print 'ERROR - msgfmt failed with return code %i.' % retcode

    DATA_FILES = [
        ('activity', glob.glob('activity/*')),
        ('icons', glob.glob('icons/*')),
        ('images', glob.glob('images/*')),
        ('/usr/share/applications', ['turtleblocks.desktop'])
    ]

    setup(name='Turtle Art',
          description="A LOGO-like tool for teaching programming",
          author="Walter Bender",
          author_email="[email protected]",
          version='0.9.4',
          packages=['TurtleArt', 'TurtleArt.util'],
          scripts=['turtleblocks'],
          data_files=DATA_FILES,
          cmdclass={"install": post_install}
          )
else:
    from sugar.activity import bundlebuilder

    if __name__ == "__main__":
        bundlebuilder.start()
开发者ID:abdelmaaboud,项目名称:turtleart,代码行数:30,代码来源:setup.py


注:本文中的sugar.activity.bundlebuilder.start函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。