RosettaCodeData/Task/Program-name/Python/program-name-2.py

11 lines
179 B
Python
Raw Normal View History

2013-04-10 23:57:08 -07:00
#!/usr/bin/env python
import inspect
def main():
2016-12-05 22:15:40 +01:00
program = inspect.getfile(inspect.currentframe())
print("Program: %s" % program)
2013-04-10 23:57:08 -07:00
2016-12-05 22:15:40 +01:00
if __name__ == "__main__":
main()