I would like to drag and drop my data file onto a Python script and have it process the file and generate output. The Python script accepts the name of the data file as a co
With an installed python - at least 2.6.1 - you can just drag and drop any file on a python script.
import sys droppedFile = sys.argv[1] print droppedFile
sys.argv[0] is the script itself. sys.argv[n+1] are the files you have dropped.
sys.argv[0]
sys.argv[n+1]