开发者

Python - drag file into .exe to run script

I have a Python script that takes the directory path of a text file and converts it into an excel file. Currently I have it running as a console application (compiled with py2exe) and prompts the user for the directory path through raw_input().

How do i make it such that I can drag & 开发者_运维技巧drop my text file directly into the .exe of the python script?


The dropped file will be available as an element of sys.argv.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜