MCPcopy Create free account
hub / github.com/dobin/SuperMega / add_project_setting

Method add_project_setting

app/storage.py:39–42  ·  view source on GitHub ↗
(self, settings: Settings)

Source from the content-addressed store, hash-verified

37
38
39 def add_project_setting(self, settings: Settings):
40 os.makedirs(PATH_WEB_PROJECT + settings.project_name, exist_ok=True)
41 with open("{}/{}/project.pickle".format(PATH_WEB_PROJECT, settings.project_name), "wb") as f:
42 pickle.dump(settings, f)
43
44
45 def save_project_settings(self, settings: Settings):

Callers 1

add_projectFunction · 0.80

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected