Finn Dong
Finn Dong

Reputation: 1

PermissionError: [Errno 1] Operation not permitted while using Pyto on iPadOS 14

Please help :)

I just want to load a csv file so I wrote:

import os.path
print(os.path.abspath("example.csv"))

in the pythonista, I got the file path without error however, in the pyto, it returned with PermissionError [Errno1] Operation not permitted

The file is located on my laptop where I've already connected via smb address

Upvotes: 0

Views: 1993

Answers (1)

Finn Dong
Finn Dong

Reputation: 1

Just figured it out. It turns out that Pyto need to confirm the scripts directory before exciting it.

I pressed the Settings icon at bottom, and pressed “Current Directory” to select the directory where the script located. After these steps I was able to run the codes above without errors.

Thank you!

Upvotes: 0

Related Questions