MCPcopy
hub / github.com/WebODM/WebODM / get_project_dir

Method get_project_dir

app/models/project.py:76–80  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

74 return self.name
75
76 def get_project_dir(self):
77 if self.id is None:
78 raise ValueError("Cannot call get_project_dir, id is None")
79
80 return os.path.join(wo_settings.MEDIA_ROOT, "project", str(self.id))
81
82 def tasks(self):
83 return self.task_set.only('id')

Callers 3

deleteMethod · 0.95
test_projectMethod · 0.80
importexport_userFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_projectMethod · 0.64