mirror of
https://github.com/derrod/legendary.git
synced 2024-06-27 02:30:30 +12: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'
|