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

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
Save the pth file
Create a symlink to the path if it does not already exist.

src/h/u/hue-HEAD/tools/app_reg/app_reg.py   hue(Download)
    pthfile = pth.PthFile()
    pthfile.remove(app)
    pthfile.save()
    return True
  except (OSError, SystemError), ex:
    pthfile = pth.PthFile()
    pthfile.sync(apps)
    pthfile.save()
 
    build.make_syncdb()

src/h/o/hortonworks-sandbox-HEAD/tools/app_reg/app_reg.py   hortonworks-sandbox(Download)
    pthfile = pth.PthFile()
    pthfile.remove(app)
    pthfile.save()
    return True
  except (OSError, SystemError), ex:
    pthfile = pth.PthFile()
    pthfile.sync(apps)
    pthfile.save()
 
    build.make_syncdb()