mirror of
https://github.com/LazoCoder/Pokemon-Terminal
synced 2024-11-27 14:21:06 +00:00
15 lines
345 B
Python
15 lines
345 B
Python
import os
|
|
|
|
from adapter.base import TerminalAdapterInterface
|
|
|
|
|
|
class Terminology(TerminalAdapterInterface):
|
|
@staticmethod
|
|
def is_available():
|
|
return os.environ.get("TERMINOLOGY") == '1'
|
|
|
|
def set_pokemon(self, pokemon):
|
|
os.system('tybg "{}"'.format(pokemon.get_path()))
|
|
|
|
def clear(self):
|
|
os.system("tybg")
|