So, I have a python script as follows:
#! /bin/bash
import os
def addword(run):
os.system("gnome-terminal --working-directory=../dictionary -e 'python3 addto.py'")
The spawned terminal disappears immediately when I run addword(0)
which should, to my knowledge, run addword as if it were a program. Is there a simple way to fix this? There is a 'dictionary' directory a directory higher than where this is being executed.
I'm on Ubuntu 15.04