This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import datetime | |
| import re | |
| import warnings | |
| def strftime(dt, fmt): | |
| if dt.year < 1900: | |
| # create a copy of this datetime, just in case, then set the year to | |
| # something acceptable, then replace that year in the resulting string | |
| tmp_dt = datetime.datetime(datetime.MAXYEAR, dt.month, dt.day, | |
| dt.hour, dt.minute, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def AppendPaths(paths): | |
| """Append all the paths with DLLs to be used by the script to the Python Path""" | |
| import sys | |
| for p in paths: | |
| sys.path.append(p) | |
| def AddReferences(refs): | |
| """Add references to the required DLLs""" | |
| import clr |
NewerOlder