<filename>mcpipy/mcpi/settings.py<gh_stars>1-10
from os import environ

MINECRAFT_POCKET_EDITION = 0
MINECRAFT_PI = 1
MINECRAFT_DESKTOP = 2

minecraftType = MINECRAFT_DESKTOP

try:
    minecraftType = int(environ['MINECRAFT_TYPE'])
except:
    pass

isPE = (minecraftType != MINECRAFT_DESKTOP)

<filename>mcpipy/mcpi/settings.py<gh_stars>1-10
from os import environ

MINECRAFT_POCKET_EDITION = 0
MINECRAFT_PI = 1
MINECRAFT_DESKTOP = 2

minecraftType = MINECRAFT_DESKTOP

try:
    minecraftType = int(environ['MINECRAFT_TYPE'])
except:
    pass

isPE = (minecraftType != MINECRAFT_DESKTOP)
