Merge pull request #1128 from balena-io/lockfile-python

docs: update lockfile Python snippet
This commit is contained in:
xginn8 2019-10-30 15:17:10 -04:00 committed by GitHub
commit d3a7bbb7ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,7 @@ lockFile.lock '/tmp/balena/updates.lock', (err) ->
In Python you can use the [`lockfile` library](http://pythonhosted.org/lockfile/lockfile.html#examples)
```python
from lockfile import LockFile
lock = LockFile("/tmp/balena/updates.lock")
lock = LockFile("/tmp/balena/updates")
with lock:
print lock.path, 'is locked.'
```