Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Functions | Variables
common Namespace Reference

Functions

 run (cmd)
 

Variables

 FILE_DIR = os.path.dirname(os.path.abspath(__file__))
 
 INFRA_BOTS_DIR = os.path.realpath(os.path.join(FILE_DIR, os.pardir, os.pardir))
 
 ASSET_NAME = os.path.basename(FILE_DIR)
 

Detailed Description

Common vars used by scripts in this directory.

Function Documentation

◆ run()

common.run (   cmd)
Run a command, eg. "upload" or "download". 

Definition at line 24 of file common.py.

24def run(cmd):
25 """Run a command, eg. "upload" or "download". """
26 assets.main([cmd, ASSET_NAME] + sys.argv[1:])
Definition run.py:1

Variable Documentation

◆ ASSET_NAME

common.ASSET_NAME = os.path.basename(FILE_DIR)

Definition at line 21 of file common.py.

◆ FILE_DIR

common.FILE_DIR = os.path.dirname(os.path.abspath(__file__))

Definition at line 15 of file common.py.

◆ INFRA_BOTS_DIR

common.INFRA_BOTS_DIR = os.path.realpath(os.path.join(FILE_DIR, os.pardir, os.pardir))

Definition at line 16 of file common.py.