0

Hi everyone!
I wrote a Python 2.5 application, with GUI from Tkinter module. To make it short, the user has to load a file and can start to work on it.
I made it Windows executable with py2exe, and installable with Inno, with a file association setting. So now, if I double-click on a .xxx file, it launches my application.
Now the problem is that I have no clue how to load the double-clicked file into the program. It seems the answer is somewhere in the win32*** modules, but after spending few days looking for it, I didn't find any way to do it.
Any help, lead or solution appreciated!

Thanks,

yan

2
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by Gribouillis
2

It's only an idea, but don't you think sys.argv contains the path to the double-clicked file ?

Edited by Gribouillis: n/a

Votes + Comments
nice indeed
0

Merci Gribouillis!

that was the function I was looking for.
sys.argv returns indeed the path from where the script 's been launched.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.