New method for importing main

Leaving the old method in there in case this doesn't work
This commit is contained in:
Theelgirl 2020-10-16 17:46:07 +00:00 committed by GitHub
parent 1105a8485f
commit ae7935dec0
1 changed files with 9 additions and 0 deletions

View File

@ -1,4 +1,7 @@
import sys
# leaving this here in case the try/except thing doesn't work
"""
import platform
import distro # to check linux distributions
@ -14,6 +17,12 @@ if platform.system().lower() in ('linux', 'darwin') and linux_distro not in ('ar
else:
# windows and artix linux need this because of something in the Cython/Password PR, unknown if more OSes need it
from fvid.fvid import main
"""
try:
from fvid import main
except:
from fvid.fvid import main
if __name__ == '__main__':
sys.exit(main())