nineteendo / pyvz2

PyVZ2 is a command line utility to modify PvZ2
GNU General Public License v3.0
44 stars 6 forks source link

Support arguments #61

Open Haruma-VN opened 1 year ago

Haruma-VN commented 1 year ago

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.

Haruma-VN commented 1 year ago

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.