I want to run two commands in sequence:
- First go to /var/tmp/test folder
- Then svn checkout here
In order to do that I wrote this script:
open_folder = "cd /var/tmp/%s" % (folder_name)
cmd = "%s %s/%s/%s && %s %s/%s/%s" % (svn_co, svn_co_directory, fst_product_name, fst_firmware_name, svn_co, svn_co_directory, snd_product_name, snd_firmware_name)
os.system(open_folder)
os.system(cmd)
It creates folder_name
, but does not checkout into folder_name
. It checked out to my current directory. Why?