Flutter Engine
The Flutter Engine
Functions | Variables
generate_package_config Namespace Reference

Functions

def is_windows ()
 
def checked_in_sdk_path ()
 
def checked_in_sdk_executable ()
 
def generate_package_config ()
 
def Main ()
 

Variables

bool USE_PYTHON3 = True
 

Function Documentation

◆ checked_in_sdk_executable()

def generate_package_config.checked_in_sdk_executable ( )

Definition at line 27 of file generate_package_config.py.

28 name = 'dart'
29 if is_windows():
30 name = 'dart.exe'
31 return os.path.join(checked_in_sdk_path(), 'bin', name)
32
33

◆ checked_in_sdk_path()

def generate_package_config.checked_in_sdk_path ( )

Definition at line 22 of file generate_package_config.py.

23 tools_dir = os.path.dirname(os.path.realpath(__file__))
24 return os.path.join(tools_dir, 'sdks', 'dart-sdk')
25
26

◆ generate_package_config()

def generate_package_config.generate_package_config ( )

Definition at line 34 of file generate_package_config.py.

35 tools_dir = os.path.dirname(os.path.realpath(__file__))
36 process = subprocess.run([
38 os.path.join(tools_dir, 'generate_package_config.dart')
39 ])
40 return process.returncode
41
42

◆ is_windows()

def generate_package_config.is_windows ( )

Definition at line 17 of file generate_package_config.py.

17def is_windows():
18 os_id = platform.system()
19 return os_id == 'Windows'
20
21

◆ Main()

def generate_package_config.Main ( )

Variable Documentation

◆ USE_PYTHON3

bool generate_package_config.USE_PYTHON3 = True

Definition at line 14 of file generate_package_config.py.