• eddo888

    @ccc at the risk of going on about it,
    if shortcusts didn't put a redunant arg on the args list
    I wouldn't have to do anything.

    posted in Pythonista read more
  • eddo888

    @cvp Thanks for responding, it is encouraging that a thriving Pythonista community exists.
    my desire is to have a Rossum approach to code so my scripts work on all my platforms

    posted in Pythonista read more
  • eddo888

    @ccc said:

    sys.argv.pop() # does not seem too ugly

    #more like

    try:
        # from pythonista libraries
        import editor
        # fix for pythonista tools icons
        if sys.argv[-1] == editor.get_path():
            argv = sys.argv[1:-1]
        else:
            argv = sys.argv[1:]
    except:
        argv = sys.argv[1:]
    

    posted in Pythonista read more
  • eddo888

    @cvp sys.argv[0] is allways the actual script

    posted in Pythonista read more
  • eddo888

    i have noticed similar behaviour definitely related to icloud sharing
    jump out of pythonista and the icloud is hung as well

    posted in Pythonista read more
  • eddo888

    the actual calling script is in sys.argv[0]
    the current editor can be obtained from editor.get_path()
    so why does shortcut need to append the editor path to the args, this is redundant and not the same behaviour as from the command line cf stash
    i use the args in the shortcut and have to do all sorts of ugly logic to remove the editor path

    posted in Pythonista read more
  • eddo888

    if you run the following as a custom shortcut

    import sys, editor, console
    
    console.clear()
    
    print('\nwhy does the custom shortcut append the editor file path ?')
    print(sys.argv)
    
    print('\nwhen you can get the path from the editor library')
    print(editor.get_path())
    
    print('\nwhich is a more intuitive way to do it')
    

    posted in Pythonista read more
  • eddo888

    would be awesome if editorial supported ifiles integration, either "icloud drive" or "on 'my iphone"

    then we could use WorkingCopy for git !

    posted in Editorial read more
  • eddo888

    @Daniel.Dalsgaard

    works better using python3
    python2 is great but not perfect

    posted in Pythonista read more
  • eddo888

    @MartinPacker

    Standards are meant to be broken, software darwinisim in action. :-)

    posted in Editorial read more

Internal error.

Oops! Looks like something went wrong!