def _pokeSniper(name, lat, lng):
if _nt and _colors:
wincolors.paint(wincolors.colors.WARNING)
try:
if _terminal:
subp = subprocess.Popen([ps_path, name, lat, lng], cwd=ps_dir, creationflags = subprocess.CREATE_NEW_CONSOLE)
subp.wait()
else:
subp = subprocess.Popen([ps_path, name, lat, lng], cwd=ps_dir)
subp.wait()
except OSError, e:
error = "[WARNING] - PokeSniper2 Not found on Sniper folder"
if _nt and _colors:
wincolors.paint(wincolors.colors.ERROR)
if _verbose == 0:
print error
elif _verbose == 1:
print '[ERROR] OSError'
print error
elif _verbose == 2:
print '[ERROR] OSError = ' + str(e)
print error
_logError(str(e))
_logError(error)
#Loop
评论列表
文章目录