mirror of
https://github.com/derrod/legendary.git
synced 2024-09-29 08:52:11 +13:00
11 lines
189 B
Python
11 lines
189 B
Python
|
import os
|
||
|
import sys
|
||
|
|
||
|
|
||
|
def is_pyinstaller():
|
||
|
return getattr(sys, 'frozen', False) and hasattr(sys, '_MEIPASS')
|
||
|
|
||
|
|
||
|
def is_windows_or_pyi():
|
||
|
return is_pyinstaller() or os.name == 'nt'
|