Example #1
0
from pecan.commands import CommandRunner

runner = CommandRunner()
runner.run(['serve', 'config.py'])
Example #2
0
def main():
    dir_name = os.path.dirname(__file__)
    drive, path_and_file = os.path.splitdrive(dir_name)
    path, filename = os.path.split(path_and_file)
    runner = CommandRunner()
    runner.run(['serve', path + '/config.py'])