コード例 #1
0
ファイル: test_skool2html.py プロジェクト: TitsMagee/skoolkit
 def test_default_option_values(self):
     self.mock(skool2html, 'run', mock_run)
     infiles = ['game1.ref', 'game2.skool']
     skool2html.main(infiles)
     files, options = run_args
     self.assertEqual(files, infiles)
     self.assertTrue(options.verbose)
     self.assertFalse(options.show_timings)
     self.assertEqual(options.config_specs, [])
     self.assertFalse(options.new_images)
     self.assertEqual(options.case, None)
     self.assertEqual(options.base, None)
     self.assertEqual(options.files, 'BbcdGgimoPpty')
     self.assertEqual(options.pages, [])
     self.assertEqual(options.output_dir, None)
コード例 #2
0
ファイル: skrunner.py プロジェクト: bestm80eva/backtoskool
def run_skool2html():
    options = '-d {}/build/html'.format(BACKTOSKOOL_HOME)
    skool2html.main(options.split() + sys.argv[1:] + [BTS_SKOOL])
コード例 #3
0
def run_skool2html():
    options = '-d {}/build/html'.format(JETSETWILLY_HOME)
    skool2html.main(options.split() + sys.argv[1:] + [JSW_SKOOL])
コード例 #4
0
def run_skool2html():
    options = '-d {}/build/html'.format(MANICMINER_HOME)
    skool2html.main(options.split() + sys.argv[1:] + [MM_SKOOL])
コード例 #5
0
ファイル: skrunner.py プロジェクト: skoolkid/rom
def run_skool2html():
    options = '-ad {}/build/html'.format(ROM_HOME)
    skool2html.main(options.split() + sys.argv[1:] + [ROM_SKOOL])
コード例 #6
0
def run_skool2html():
    options = '-d {}/build/html'.format(CONTACTSAMCRUISE_HOME)
    skool2html.main(options.split() + sys.argv[1:] + [CSC_SKOOL])
コード例 #7
0
ファイル: skrunner.py プロジェクト: skoolkid/hungryhorace
def run_skool2html():
    options = '-d {}/build/html'.format(HUNGRYHORACE_HOME)
    skool2html.main(options.split() + sys.argv[1:] + [HH_SKOOL])
コード例 #8
0
ファイル: skrunner.py プロジェクト: bestm80eva/rom
def run_skool2html():
    options = '-Had {}/build/html'.format(ROM_HOME)
    skool2html.main(options.split() + sys.argv[1:] + [ROM_SKOOL])
コード例 #9
0
ファイル: skool2html.py プロジェクト: TitsMagee/skoolkit
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright 2012-2013 Richard Dymond ([email protected])
#
# This file is part of SkoolKit.
#
# SkoolKit 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 3 of the License, or (at your option) any later
# version.
#
# SkoolKit 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
# SkoolKit. If not, see <http://www.gnu.org/licenses/>.

import sys

from skoolkit import skool2html, error, SkoolKitError

try:
    skool2html.main(sys.argv[1:])
except SkoolKitError as e:
    error(e.args[0])
コード例 #10
0
#!/usr/bin/env python3

# Copyright 2012-2013, 2017 Richard Dymond ([email protected])
#
# This file is part of SkoolKit.
#
# SkoolKit 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 3 of the License, or (at your option) any later
# version.
#
# SkoolKit 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
# SkoolKit. If not, see <http://www.gnu.org/licenses/>.

import sys

from skoolkit import skool2html, error, SkoolKitError

try:
    skool2html.main(sys.argv[1:])
except SkoolKitError as e:
    error(e.args[0])
コード例 #11
0
ファイル: skrunner.py プロジェクト: skoolkid/manicminer
def run_skool2html():
    options = '-d {}/build/html'.format(MANICMINER_HOME)
    skool2html.main(options.split() + sys.argv[1:] + [MM_SKOOL])