Reputation: 54
Is there a way to use the OS module in python to save a jpeg created by the screenshot() function in Kivy? I am on Android so I want to find a way to make it so that the screenshot() gets saved in /sdcard/Pictures.
If I don't have to use the OS module, how would I do it?
Please use examples and add code snippets that other users and I can use for future reference.
I have been stuck on this issue for a long time.
Thanks in advance!!!!
Upvotes: 0
Views: 94
Reputation: 29488
I want to find a way to make it so that the screenshot() gets saved in /sdcard/Pictures.
The argument to screenshot is the filepath to save at, just write Window.screenshot('/sdcard/Pictures')
.
Upvotes: 1