17 lines
340 B
Python
Executable file
17 lines
340 B
Python
Executable file
#!/usr/bin/env python3
|
|
import sys, os
|
|
|
|
from paws.routes import main
|
|
|
|
if __name__ == '__main__':
|
|
if 'edit' in sys.argv:
|
|
from paws.config import stor_path
|
|
|
|
print(f'Opening {stor_path}/production.env in a text editor')
|
|
editor = os.popen(f'$EDITOR {stor_path}/production.env', 'r')
|
|
editor.read()
|
|
editor.close()
|
|
sys.exit()
|
|
|
|
main()
|