I am going to try my best to explain the problem I am facing. I created this custom shell command in linux
#!/bin/bash
function create() {
python3 .create.py $1
cd /home/simon/Linux_Storage/Projects/$FILEPATH$1
code .
echo "Project created."
cd
}
What I am trying to do is to call it from a python script by using os.system("create "), but i get this error: sh: 1: create: not found .
If I try to use any other default command like os.system("date"), or I just try to call my command from the terminal it works no problem.
Is there a way to access custom shell commands from a python file? Or should I abandon the idea?