From d12c10b0c2092615ac5d94168db703b23744006b Mon Sep 17 00:00:00 2001 From: Matthew McGinn Date: Tue, 29 Oct 2019 11:57:41 -0400 Subject: [PATCH] docs: update lockfile Python snippet Port over the downstream changes from https://github.com/balena-io/docs/pull/1184 Change-type: patch Signed-off-by: Matthew McGinn --- docs/update-locking.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/update-locking.md b/docs/update-locking.md index 407ea9a9..5893847b 100644 --- a/docs/update-locking.md +++ b/docs/update-locking.md @@ -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.' ```