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.


    appex save file vs homescreen/in editor save file

    Pythonista
    2
    4
    2726
    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.
    • khilnani
      khilnani last edited by

      (first post, great app and amazing community, learned a lot from everyone else's contributions. )

      I'm noticing the path to the ~/Documents folder is different when my script is run via appex share 'Run in Pythonista' vs. from launch Pythonista via the home screen and running the same script

      Share menu run in Pythonista - /private/var/mobile/Containers/Data/PluginKitPlugin/ID/Documents
      Normal Pythonista - /private/var/mobile/Containers/Shared/AppGroup/ID/Documents

      i'm, using os.expanduser('~/Documents') - is this not the correct way to access the documents folder? or, is there a way to get to the regular Pythonista Documents folder

      The script i'm using is at https://github.com/khilnani/pythonista-scripts/blob/master/extensions/save-url.py

      Thanks!

      1 Reply Last reply Reply Quote 0
      • JonB
        JonB last edited by

        what version are you running?

        In a recent version(maybe the beta), the appex and main app share the documents folder.

        1 Reply Last reply Reply Quote 0
        • khilnani
          khilnani last edited by

          i'm running v2.0 (200003)

          thx

          1 Reply Last reply Reply Quote 0
          • khilnani
            khilnani last edited by khilnani

            Using cwd helped -

            DOCS_DIR = os.getcwd().split('Documents')[0] + 'Documents'
            
            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB Forums | Contributors