[Tutor] How to call the path of an input file

John Villarraga jvillar1 at andrew.cmu.edu
Thu Jan 21 11:51:09 EST 2016


I would like to know what is the syntax to call the path of the input file.
Below, my code is calling the input file, but not the path.

Sorry for the inconvenience and thank you for your time.


import sys


path = sys.argv[1]


y = map(str.lower, path.split())


More information about the Tutor mailing list