Ι need to change the paths using subprocess
but it doesn't work
I am using py3.6 - python-telegrambot
it's my code
def sh(bot,update):
ID = 289444284
command=update.message.text
print(command)
su = subprocess.getstatusoutput(command)
bot.sendMessage(ID,su[1] )
and also
subprocess.Popen(command, shell=True, stdout=PIPE).communicate()
subprocess.getoutput(command)
os.system(command)
But when I put the cd command back, I'm on the same path and the path does not change
![enter image description here][1]
[1]: screen shot