permission error on ipad but not on iPhone with getcwd().
import os print(os.getcwd())
Running that code in a file is giving me a permission error.
Traceback (most recent call last):
File "/private/var/mobile/Library/Mobile Documents/com LoudDocs/_test/test_function.py", Line 3, in <module> print (os.getcwd())
PermissionError: [Errno 3] Operation not permitted
I can run the same code/file on my iphone and it works. how have i changed ios permissions on my iPad.
@Pythonised did you authorize the access to this folder in Pythonista, by opening it as external?
Thanks @cvp I added the root of my icloud to external files as you sugeated and voila. I dont understand how this stopped working but I'm happy to have a simple solution.