Help Center/ ModelArts/ FAQs/ ModelArts Standard Model Training/ What Should I Do If I Cannot Access the Folder Using os.system ('cd xxx') During Training in ModelArts?
Updated on 2025-08-28 GMT+08:00

What Should I Do If I Cannot Access the Folder Using os.system ('cd xxx') During Training in ModelArts?

If you cannot access the corresponding folder by using os.system('cd xxx') in the boot script of the training job, you are advised to use the following method:

import os
os.chdir('/home/work/user-job-dir/xxx')