.project

Planit property

Description

The .project property allows access to the assignment project instance. In case no call to ‘create_project(+)’ has been made yet, it initialises a project based on the current working directory equating to calling ‘create_project()’ beforehand.

Return type

PlanitProject implementation

Example 1

from planit import *

# create project using current working directory
planit_instance = Planit()
planit_project = planit_instance.project()

# The above equates to
# planit_instance = Planit()
# planit_instance.ceate_project()
# planit_project = planit_instance.project

See also

PlanitProject describes the options available on the assignment project implementation

Source code

Class Planit in Planit.py