mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-20 06:01:37 +00:00
18 lines
496 B
Python
Executable File
18 lines
496 B
Python
Executable File
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
"""Provides backwards compatibility for calling gam as a single .py file"""
|
|
|
|
import multiprocessing
|
|
import platform
|
|
|
|
from gam.__main__ import main
|
|
|
|
# Run from command line
|
|
if __name__ == '__main__':
|
|
if platform.system() != 'Linux':
|
|
multiprocessing.freeze_support()
|
|
# Python 3.14.4 and PyInstaller 6.19.0 don't play nice with Linux forkserver
|
|
# use spawn everywhere for now.
|
|
multiprocessing.set_start_method('spawn', force=True)
|
|
main()
|