fvid/fvid/__main__.py

29 lines
732 B
Python
Raw Normal View History

2020-10-07 16:14:32 +02:00
import sys
# leaving this here in case the try/except thing doesn't work
"""
2020-10-13 16:33:33 +02:00
import platform
2020-10-15 22:07:09 +02:00
import distro # to check linux distributions
try:
linux_distro = distro.linux_distribution()[0].lower()
except:
linux_distro = "n/a"
# fvid
if platform.system().lower() in ('linux', 'darwin') and linux_distro not in ('artix linux',):
# this used to work for every distro but something changed in the Cython/Password PR
2020-10-13 16:33:33 +02:00
from fvid import main
else:
2020-10-15 22:07:09 +02:00
# windows and artix linux need this because of something in the Cython/Password PR, unknown if more OSes need it
2020-10-13 16:33:33 +02:00
from fvid.fvid import main
"""
try:
from fvid import main
except:
from fvid.fvid import main
2020-10-07 16:14:32 +02:00
if __name__ == '__main__':
2020-10-15 22:07:09 +02:00
sys.exit(main())