mirror of https://github.com/AlfredoSequeida/fvid
New method for importing main
Leaving the old method in there in case this doesn't work
This commit is contained in:
parent
1105a8485f
commit
ae7935dec0
|
@ -1,4 +1,7 @@
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
# leaving this here in case the try/except thing doesn't work
|
||||||
|
"""
|
||||||
import platform
|
import platform
|
||||||
import distro # to check linux distributions
|
import distro # to check linux distributions
|
||||||
|
|
||||||
|
@ -14,6 +17,12 @@ if platform.system().lower() in ('linux', 'darwin') and linux_distro not in ('ar
|
||||||
else:
|
else:
|
||||||
# windows and artix linux need this because of something in the Cython/Password PR, unknown if more OSes need it
|
# 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
|
from fvid.fvid import main
|
||||||
|
"""
|
||||||
|
|
||||||
|
try:
|
||||||
|
from fvid import main
|
||||||
|
except:
|
||||||
|
from fvid.fvid import main
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
sys.exit(main())
|
sys.exit(main())
|
||||||
|
|
Loading…
Reference in New Issue