jamiecaesar / securecrt-tools

SecureCRT scripts, written in Python, for doing various tasks when connected to Cisco equipment.
Apache License 2.0
247 stars 77 forks source link

Code optimizations #2

Closed methridge closed 9 years ago

methridge commented 9 years ago

Moved variable definitions for save path and date string to top of script.

Removed GetDate function and converted to using built in date time string format method.

Updated home path to use ~ instead of environment variable. This makes it more OS agnostic.

Included SecureCRT IgnoreEscape in the screen capture so as to skip color escape sequences in the capture.

These updates can be applied to the other scripts as well. Once this one is approved. I'll make the updates to the other scripts.

jamiecaesar commented 9 years ago

Awesome, thanks! I'll have to update the other scripts with these changes.

methridge commented 9 years ago

I have the other scripts updated if you want me to commit them. But if you want to go through it to see what I did, I understand that as well ;-)

jamiecaesar commented 9 years ago

Go ahead and submit them. I already read through what you did on SaveRunning before merging, so I'm good with it.