예제 #1
0
파일: term.py 프로젝트: spudfkc/minewrap
import shell
import engine


engine = engine.Engine()
shell = shell.Shell(engine)

shell.start()
예제 #2
0
파일: test.py 프로젝트: kesac/textadventure
# PROTOTYPE

import mapgen
import mapvis
import shell


map = mapgen.create_dfs_map(6,6)

shell.start(map)
mapvis.visualize(map)
예제 #3
0
파일: build.py 프로젝트: SesameShibe/mcu.js
Available options:
    --platform          Select target platform (esp32 or k210).
    --port              Select the serial port for flash/shell. 


""")


action = ''
os.environ['PATH'] += ':' + \
    os.getcwd() + '/toolchain/esp32-toolchain/xtensa-esp32-elf/bin'
os.environ['IDF_PATH'] = os.getcwd() + '/toolchain/esp-idf/esp-idf-' + \
    PLATFORMS['esp32']['toolchain']['esp-idf']['version']
if len(sys.argv) >= 2:
    action = sys.argv[1]
if action == 'prepare-toolchain':
    perpareToolchain()
elif action == 'generate':
    generate()
elif action == 'build':
    build()
elif action == 'flash':
    flash()
elif action == 'env':
    startShellInEnvironment()
elif action == 'shell':
    shell.start()
else:
    usage()