A wrapper around liblockfile, using ctypes.
A Python wrapper around liblockfile, using ctypes. You must have the liblockfile shared library installed on your system. On Ubuntu, this can be done with:
sudo apt-get install liblockfile1
For more information see the Launchpad project page.
lockfile = os.path.join(args.output, ".lock") with Lock.WithPID(lockfile) as lock, LockHolder(lock): ...
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.