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.


    How to get rid of Examples folder and contents?

    Pythonista
    4
    6
    2704
    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.
    • upwart
      upwart last edited by

      As I use the Pythonista Documents folder as a shared folder with a Windows folder (via Synchronator), I would like to have the Examples folder in a subdirectory. But, when I remove the Example folder at the top level, it appears again when I restart Pythonista.
      Is there a way to permanently delete the Examples folders from the top level?

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

        Can confirm - if I rename my "Examples" folder, a new one appears when I restart Pythonista. I don't think this is supposed to happen, after all there is a "Restore Examples" option in the Pythonista settings.

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

          I have found a work around, by putting a pythonista_startup.py script in site-packages, which just deletes the Examples folder.:

          import shutil,os
          try:
          shutil.rmtree(os.path.expanduser('~/Documents')+'/Examples')
          except:
          pass

          Not very elegant, but it does the job.

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

            This behavior is intentional, but I might need to rethink it.

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

              @omz I vote to change the behavior. When I delete content of the Examples folder, but keep the folder itself, examples are not restored and I still have empty Examples folder. Basically Pythonista forces me to keep this folder, even empty one. I understand that you do want to reserve this folder for examples probably, but it's little bit weird. I would auto restore examples only if ExamplesVersion from user defaults differs -> updated/new examples with Pythonista update. Just my $.02. Anyway, not a big issue :)

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

                @zrzka Agreed.

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