156 | with open(toml_file, 'r', encoding='utf-8') as toml_contents: |
157 | toml_config = toml.load(toml_contents) |
158 | except FileNotFoundError as e: |
512 | with open(toml_file, 'r', encoding='utf-8') as toml_contents: |
513 | toml_config = toml.load(toml_contents) |
514 | except FileNotFoundError as e: |
576 | with open(toml_file, 'r', encoding='utf-8') as toml_contents: |
577 | toml_config = toml.load(toml_contents) |
34 | full_registry = toml.load(registry_path / "Registry.toml") |
35 | registry = full_registry.copy() |
51 | # Read the Project.yaml from the src |
52 | project = toml.load(Path(info["src"]) / "Project.toml") |
85 | # In the case where versions=None, this is a weak dep, and we keep all versions. |
86 | all_versions = toml.load(registry_path / path / "Versions.toml") |
98 | package_toml = toml.load(registry_path / path / "Package.toml") |
474 | print("# load toml file") |
475 | subscriptions = toml.load(SUBSCRIPTIONS_FILE) |
476 | else: |
569 | os.system("sudo chown admin:admin {0}".format(SUBSCRIPTIONS_FILE)) |
570 | subscriptions = toml.load(SUBSCRIPTIONS_FILE) |
571 | for idx, subscription in enumerate(subscriptions['subscriptions_ip2tor']): |
606 | try: |
607 | subscriptions = toml.load(SUBSCRIPTIONS_FILE) |
19 | f_out.seek(0) |
20 | self.config = toml.load(f_out) |
21 | else: |
22 | # check if all the keys are present in the config file |
23 | with open("sample.config.toml", "r") as f: |
24 | sample_config = toml.load(f) |
25 | |
26 | with open("config.toml", "r+") as f: |
27 | config = toml.load(f) |
20 | registry = toml.load(registry_path / "Registry.toml") |
48 | path = registry_info["path"] |
49 | packageToml = toml.load(registry_path / path / "Package.toml") |
50 | |
51 | versions_toml = registry_path / path / "Versions.toml" |
52 | all_versions = toml.load(versions_toml) |
53 | if not pkg["version"] in all_versions: continue |
217 | if Path(SUBSCRIPTIONS_FILE).is_file(): |
218 | subs = toml.load(SUBSCRIPTIONS_FILE) |
219 | if "subscriptions_letsencrypt" in subs: |
273 | print("# load toml file") |
274 | subscriptions = toml.load(SUBSCRIPTIONS_FILE) |
275 | else: |
308 | os.system("sudo chown admin:admin {0}".format(SUBSCRIPTIONS_FILE)) |
309 | subs = toml.load(SUBSCRIPTIONS_FILE) |
172 | with open(toml_file, "r") as file: |
173 | linting_status = toml.load(file) |
174 | if ( |
182 | with open(toml_file, "r") as file: |
183 | selected_files = toml.load(file) |
294 | selected_files = [] |
295 | edited_tree = toml.load(toml_file) # Load the edited .toml file |
25 | logger logger.Interface |
26 | configSource toml.Loader |
27 | configDestination toml.Loader |
28 | topLevelConfigPath string |
48 | // WithConfigSource sets the TOML source for the config. |
49 | func WithConfigSource(configSource toml.Loader) Option { |
50 | return func(b *builder) { |
56 | func WithConfigDestination(configDestination toml.Loader) Option { |
194 | // * command: The runtime-specific function supplied as an argument is used. |
195 | func (o Options) GetConfigLoaders(commandSourceFunc func(string, string) toml.Loader) ([]toml.Loader, error) { |
196 | if len(o.ConfigSources) == 0 { |
197 | return []toml.Loader{toml.Empty}, nil |
198 | } |
199 | var loaders []toml.Loader |
200 | for _, configSource := range o.ConfigSources { |
30 | def load(self): |
31 | self.toml_dict = toml.load(self.file_path, decoder=toml.decoder.TomlDecoder()) |
173 | self.work_dir + path + "/Cargo.toml") |
174 | subtoml.load() |
175 | real_name = subtoml.get_item('package')['name'] |
217 | sub_toml = SubCargoToml(work_dir, work_dir + m + "/Cargo.toml") |
218 | sub_toml.load() |
219 | sub_toml.replace_fake_package_name() |