omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    permission error on ipad but not on iPhone with getcwd().

    Pythonista
    permissionerror errno 1 operation not p
    2
    3
    630
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Pythonised
      Pythonised last edited by

      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.

      cvp 1 Reply Last reply Reply Quote 0
      • cvp
        cvp @Pythonised last edited by

        @Pythonised did you authorize the access to this folder in Pythonista, by opening it as external?

        Pythonised 1 Reply Last reply Reply Quote 1
        • Pythonised
          Pythonised @cvp last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB Forums | Contributors