Forum Archive

How to upload .pyui to gist

upwart

I have developed a script in Pythonista with the new ui module, which I would like to share as a gist. What's the best way to do share both the .py and the .pyui file?

dgelessus

A short while ago I wrote a script for exactly that purpose: http://omz-forums.appspot.com/pythonista/post/5835362484092928

omz

You can also put both files into the same folder (which should contain nothing else), and then select the folder option when using the built-in gist sharing.

dgelessus

Though as far as I can tell there is no good way to put the contents back into a .pyui file, since they cannot be edited with the regular text editor. Or am I missing something here?

LawAbidingCactus

No, you can download .py and .pyui scripts using the updated version of gistcheck.py. I can't seem to find the link for it, but you can get it on github by searching for gistcheck.py.

ccc

Gistcheck can be found at https://github.com/Pythonista-Tools/Pythonista-Tools/tree/master/Utilities

It would be cool if someone could start a GitHub repo instead of a gist for gistcheck. The credits at the top of the file makes it clear that collaborative improvement has always been required for the creation and maintenance of such a key tool.