I have installed ghost blog locally on Windows 10.
To run ghost, I run the following the commands manually on Windows prompt;
$ C:\Users\johnK\Dropbox\jk\ghost
$ ghost start
I want to automate this with a Python script. This is how my Python script looks.
import os
os.system(r"C:\Users\johnK\Dropbox\jk\ghost")
os.system("ghost start")
Unfortunately, I get the following error;
'C:\Users\johnK\Dropbox\jk\ghost' is not recognized as an
internal or external command, operable program or batch file.
Working directory is not a recognisable Ghost installation.
Run `ghost start` again within a folder where Ghost was installed
with Ghost-CLI.
I am using Python v3.9, Windows 10
from Run Ghost blog locally with python script
No comments:
Post a Comment