Coverage for start.py: 88%
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1#!/usr/bin/python3
2# -*- coding: utf-8 -*-
3#
4# Helper script to start pyilper from package directory
5#
6# 01.03.2018 jsi
7# - consider the required python version specified in pilcore.py
8#
9import sys
10import os
11from pyilper.pilcore import PYTHON_REQUIRED_MAJOR, PYTHON_REQUIRED_MINOR
13if sys.version_info < ( PYTHON_REQUIRED_MAJOR, PYTHON_REQUIRED_MINOR):
14 # python too old, kill the script
15 sys.exit("This script requires Python "+str(PYTHON_REQUIRED_MAJOR)+"."+str(PYTHON_REQUIRED_MINOR)+" or newer!")
16sys.path.append(os.path.dirname(os.path.abspath(__file__)))
17from pyilper import main
18main()