Help Center/ ModelArts/ FAQs/ Training Jobs/ Compiling the Training Code/ Why Can't I Use os.system ('cd xxx') to Access the Corresponding Folder During Job Training?
Updated on 2025-09-08 GMT+08:00
Why Can't I Use os.system ('cd xxx') to Access the Corresponding Folder During Job Training?
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') Parent topic: Compiling the Training Code
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.