Quick question on passing arugments from sys. In the code below, I don't understand the data_dir = "." This data_dir is used in another section to represent a file directory, but I don't understand the = "." piece. I had thought sys.argv would only pass one arugment, the file name that could be usedin in the function main. Any help would be appreciated!
def main(name, data_dir ="."):
resp = Respondents()
resp.ReadRecords(data_dir)
print 'Number of respondents', len(resp.records)
preg = Pregnancies()
preg.ReadRecords(data_dir)
print 'Number of pregnancies', len(preg.records)
if __name__ == '__main__':
main(*sys.argv)