GHPython Recursive LogFile_GhPython

Hi,
I am trying to use python to write a text file at the same directory of the gh file is saved.

  1. Create an empty log file

code will run every once the GH doc is open to identify if a file it exist

  1. Write username, date access, email to the log file

This log file is meant to keep track who access the .gh file every time it was opened. Any help will be appreciated.

Hello,

I don’t know whether this will help you but Python has a built-in logging module: import logging to get started.

Graham