Forum Archive

Importing other file types

smath

I'm working on a bottle web app and need to import files (mostly .tpl template files)to use in conjunction with it. I know that pythonista was forced to remove support for "open in" functionality, but is there another way to import files? I'd be fine just typing the code in if I could change the file extension from .py or .txt, but it doesn't seem to allow that. Any help is greatly appreciated. Pythonista is allowing me to work on this project while I'm offline, riding a train. I love it!

smath

Never mind. I just found that the developer has come up with a kick butt solution to this problem, posted in this thread:

https://omz-forums.appspot.com/pythonista/post/4995757044137984

Thanks @omz!

briarfox

As a hint I name all my .tpl files .tpl.txt so I can edit them in pythonista.

smath

Thanks, but I'm not having any trouble editing .tpl files themselves.