PVZ2tools icon indicating copy to clipboard operation
PVZ2tools copied to clipboard

Support arguments

Open harumazzz opened this issue 2 years ago • 1 comments

In Python, there is a built-in library called "sys" that you can use that to support drag and drop. I believe you can support drag and drop through a launch file for mac, linux & windows which makes the tool faster on processing functions that improve the productivity.

harumazzz avatar Jun 11 '23 20:06 harumazzz

You can check for drag and drop or passing argument if len(sys.argv) > 2 first, then later do the process. If it's not, loads the default menu as usual.

harumazzz avatar Jun 11 '23 20:06 harumazzz