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

Ben Finney ben+python at benfinney.id.au
Thu Jan 21 12:14:49 EST 2016


John Villarraga <jvillar1 at andrew.cmu.edu> writes:

> I would like to know what is the syntax to call the path of the input
> file.

It's not clear to me what “call the path of the input file” would mean.

A filesystem path is not “callable” in a programming as you seem to be
using it.

> Below, my code is calling the input file, but not the path.

Can you please ensure your messages are plain text (not re-formatted or
marked up), to help your program code survive unmolested.

-- 
 \     “Men never do evil so completely and cheerfully as when they do |
  `\        it from religious conviction.” —Blaise Pascal (1623–1662), |
_o__)                                                   Pensées, #894. |
Ben Finney



More information about the Tutor mailing list