Re: Converting Python Scripts to meet PEP-8 (and bugs)
Posted: Wed Aug 21, 2013 12:55 pm
Idling between projects... I (FINALLY!) built a working MOSS test bed so I can now test some of the Python scripts that DIRTSAND doesn't support (mostly the game manager stuff and markers).
I am slowly doing cleanup on the scripts that I already adjusted to meet PEP-8 but now I'm looking closely at all the log debug prints with the aim to make them somewhat more user-friendly. Mostly just standardizing the output structure and replacing the "%" formatting with the newer .format. I intend to make sure that every output line in the log clearly identifies what module and section of the code it came from (like Ahnonay.OnServerInitComplete():). I'm open to suggestions... I like to write myself some rules to follow in this task.
I am slowly doing cleanup on the scripts that I already adjusted to meet PEP-8 but now I'm looking closely at all the log debug prints with the aim to make them somewhat more user-friendly. Mostly just standardizing the output structure and replacing the "%" formatting with the newer .format. I intend to make sure that every output line in the log clearly identifies what module and section of the code it came from (like Ahnonay.OnServerInitComplete():). I'm open to suggestions... I like to write myself some rules to follow in this task.