Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/h/u/hue-HEAD/tools/app_reg/app_reg.py   hue(Download)
  # Update the pth file
  try:
    pthfile = pth.PthFile()
    pthfile.remove(app)
    pthfile.save()
  apps = reg.get_all_apps()
  try:
    pthfile = pth.PthFile()
    pthfile.sync(apps)
    pthfile.save()

src/h/o/hortonworks-sandbox-HEAD/tools/app_reg/app_reg.py   hortonworks-sandbox(Download)
  # Update the pth file
  try:
    pthfile = pth.PthFile()
    pthfile.remove(app)
    pthfile.save()
  apps = reg.get_all_apps()
  try:
    pthfile = pth.PthFile()
    pthfile.sync(apps)
    pthfile.save()