get file object python from path code example
Example 1: how to access a txt file through os library in python
my_file_handle=open("folder/test.txt")
my_file_handle.read()
Example 2: get path of open file python
>>> f = open('/Users/Desktop/febROSTER2012.xls')
>>> f.name
'/Users/Desktop/febROSTER2012.xls'