本文整理汇总了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")
示例2:
#!/usr/bin/env python
from sugar.activity import bundlebuilder
bundlebuilder.start('Gambiarra')
示例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)
示例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')
示例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')
示例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")
示例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')
示例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")
示例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')
示例10:
#!/usr/bin/python
from sugar.activity import bundlebuilder
bundlebuilder.start('Frotz')
示例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'
示例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')
示例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')
示例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")
示例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()