mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-29 18:18:52 +00:00
Merge pull request #1128 from balena-io/lockfile-python
docs: update lockfile Python snippet
This commit is contained in:
commit
d3a7bbb7ac
@ -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.'
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user