Paarthri
Paarthri

Reputation: 54

How to use os module to save a jpeg to a cretin path- Using kivy screenshot()

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

Answers (1)

inclement
inclement

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

Related Questions