Searched refs:target_f (Results 1 – 2 of 2) sorted by relevance
/ohos5.0/base/startup/init/services/etc/appender/ |
H A D | file_appender.py | 98 def append_group_files(target_f, options): argument 106 target_f.write(f"{item}:{':'.join(source_dict[item])}\n") 109 def append_passwd_files(target_f, options): argument 114 target_f.write(source_contents) 118 target_f.write(src.read()) 121 target_f.write(line) 122 target_f.write("\n") 137 …pen(os.open(options.output, os.O_RDWR | os.O_CREAT, stat.S_IWUSR | stat.S_IRUSR), 'w') as target_f: 139 append_group_files(target_f, options) 141 append_passwd_files(target_f, options)
|
/ohos5.0/base/startup/init/services/etc/passwd_appender/ |
H A D | passwd_appender.py | 99 def append_group_files(target_f, options): argument 107 target_f.write(f"{item}:{':'.join(source_dict[item])}\n") 163 def append_passwd_files(target_f, options): argument 179 target_f.write(source_contents) 195 …pen(os.open(options.output, os.O_RDWR | os.O_CREAT, stat.S_IWUSR | stat.S_IRUSR), 'w') as target_f: 197 append_group_files(target_f, options) 199 append_passwd_files(target_f, options)
|