scailable / sclblpy

Python package for Scailable uploads
MIT License
19 stars 1 forks source link

Add checking for python version #34

Closed MKaptein closed 4 years ago

MKaptein commented 4 years ago

Upon start up of the package it would be nice to test whether it is indeed running on Python 3.

MKaptein commented 4 years ago

adding

if sys.version_info < (3, 0):
    print('Sclblpy requires Python 3, while Python ' + str(sys.version[0] + ' was detected. Terminating... '))
    sys.exit(1)

to __init__.py seems to work.