- Import file in a different/common-used folder
import sys
sys.path.insert(1, '/path/to/application/app/folder')import file- Run system commands without using os.system()
import subprocesssubprocess.call(["ls", "-lt"])
This command calls the shell script and returns the system output and return code attribute (e.g., 0 for no error, 1 for error). This will wait for the completed process.