omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. applepython

    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.


    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Best 0
    • Controversial 0
    • Groups 0

    applepython

    @applepython

    0
    Reputation
    280
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    applepython Unfollow Follow

    Latest posts made by applepython

    • Writing to csv file

      First time with Pythonista here and I cannot for the life of me figure out how I can point my script to a csv file I have saved on my iPhone

      I tried both Pythonista/External Files / test.csv
      and also Pythonista/Script Library/ This iPhone / test.csv

      An excerpt of my code below:

      row = ['a', 'b', 'c']

      with open(''*WHAT IS EASIEST FILE PATH TO PUT HERE WRITE TO A LOCAL CSV.csv 'a') as csvFile:
      writer = csv.writer(csvFile)
      for i in b:
      row = ['a', i, 'c']
      writer.writerow(row)

      My goal is to use Siri shortcut to run Pythonista in which it will modify a csv file on my iPhone.

      Thanks!

      posted in Pythonista
      applepython
      applepython