Skip to content

Commit

Permalink
drag and drop support
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel4-Scratch committed Jul 29, 2024
1 parent eb7e98b commit 095277f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion miao.pyw
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ if len(sys.argv) > 1:
print(zlib.decompress(f.read()).decode('utf-8'))
f.close()
else:
ImageDisplayer(resource_path("help.miao")).root.mainloop()
if os.path.isfile(sys.argv[1]):
ImageDisplayer(sys.argv[1]).root.mainloop()
else:
ImageDisplayer(resource_path("help.miao")).root.mainloop()
else:
ImageDisplayer(resource_path("help.miao")).root.mainloop()

0 comments on commit 095277f

Please sign in to comment.