[Tutor] prenting a line form appearing in log file

2017-01-05 Thread anatta anatta
Dear Tutors, Thanks in advance for the help. anatta. + I have created a log file, using 'logging' module, which records items of my interest after the execution of the program. The program in the beginning asks for name of the person who runs the program, as below: name = raw_input

[Tutor] Fw: path string

2017-01-03 Thread anatta anatta
Dear Tutor, Please disregard my request below. I know the problem! I have not defined the variable in question as a global variable. regret the inconvenience caused. Best. Kumar. + From: anatta anatta <kumarmys...@hotmail.com> Sent: Monday, Jan

[Tutor] path string

2017-01-02 Thread anatta anatta
Dear Tutor. I am trying to create unsuccessfully source path as a string 'str7' in part_1 of the code below, to be used in part_2 of the code. When I define the source path explicitly in part_2 of the code (#sourcePath = r'H://TCVFLDAT'), the code works right. How else could I find the path in

[Tutor] copy files selectively from source to destination

2016-12-05 Thread anatta anatta
Dear tutor! Here is my working code - to copy files from one drive to another. I however want to copy selective files. For example I like to copy only .txt files only from the source to destination, and not other types of files. How could I do this selective copying? Thanks in advance for