in order to get the version of an app from AndroidManifest.xml I want to execute this bash command :
/Users/{PATH-TO-SDK}/28.0.3/aapt dump badging com.squareup.cash.apk | sed -n "s/.versionName='([^']).*/\1/p"
I'm trying to embed it in a python script while using os :
import os
bashcommand = " /Users/{PATH-TO-SDK}/28.0.3/aapt dump badging
com.squareup.cash.apk | sed -n "s/.*versionName='\([^']*\).*/\1/p" "
os.system(bashcommand)
But I have this error :
SyntaxError: EOL while scanning string literal
How can I solve this ?