We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
Is possible to add a method that returns a time/datetime of lock was acquired? I want to test:
if lock.lock_at - now > 5, break_it()
Thank you
The text was updated successfully, but these errors were encountered:
Hollo jonathansp,
I think that:
with lockfile.LockFile(path) as lock: lock_time = os.path.getatime(lock.lock_file)
will do the job right.
Sorry, something went wrong.
No branches or pull requests
Hello,
Is possible to add a method that returns a time/datetime of lock was acquired? I want to test:
if lock.lock_at - now > 5, break_it()
Thank you
The text was updated successfully, but these errors were encountered: