Exemplo n.º 1
0
def getGrit(env):
  gritInPath = env.WhereIs('grit')
  if gritInPath:
    return gritInPath
  else:
    import os
    if not os.environ.has_key(DEVKITARM):
      color.pprint('''*** Could not find "grit" in the PATH.''', color.red)
      color.pprint('Please set DEVKITARM in your environment. export DEVKITARM=<path to>devkitARM', color.red)
      env.Exit(1)
    else:
      gritInDKA = env.WhereIs('grit', os.path.join(os.environ[DEVKITARM], 'bin'))
      if gritInDKA:
        return gritInDKA

  color.pprint('''*** Could not find "grit" in the PATH.''', color.red)
  print 'Make sure you are using the latest DevkitArm release'
  env.Exit(1)
Exemplo n.º 2
0
def devkitArmSet():
  if not os.environ.has_key(DEVKITARM):
    color.pprint('Please set DEVKITARM in your environment. export DEVKITARM=<path to>devkitARM', color.red)
    sys.exit(1)
    return 0
  return 1