![]() |
|
|
+ Search |
![]()
|
Mar 9th, 2000 19:40
Steve Holden,
#!/usr/bin/python import sys print "Script name is", sys.argv[0] Note that the value returned may well have path information in it, which you can remove using the os.path.basename() function. os.path.split() will give you both the path (if any) AND the script name.