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.


    Best way to get the list of files in my dropbox folder in editorial

    Editorial
    2
    2
    2163
    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.
    • robopu
      robopu last edited by

      i'm wondering how to specify my dropbox folder (what is the path) using python in editorial so that i can get a list of files in that folder?

      also is the ui module in editorial and pythonista the same? ie if i borrow ui code from pythonista community which is more active than editorial will it work in editorial? from what i can tell they're identical.

      finally, it looks like editorial comes with a useful list of python modules to use but if for some reason i want to pip install something else not already included, is it possible and if so how?

      thx

      finally,

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

        Dropbox list: there are a few workflows in the directory that'll probably help you here, but as a starter, you can use something like:

        p = editor.get_path()
        print(p)
        

        ...with a Dropbox file open in the editor to get the path.

        UI module: I copied the stopwatch example from Pythonista into Editorial, no problems.

        Installing modules: possible to an extent, but not as convenient as in Pythonista. See here: https://forum.omz-software.com/topic/3921/library-module-for-editorial-via-pythonista

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