Check __debug__ constant instead of a .debug file #27

Closed
opened 2021-10-13 15:07:41 -04:00 by anna · 0 comments
Owner

debug is True if python isn't started using the '-O' option, so we can rely on this to determine if we should use the debug database or not.

__debug__ is True if python isn't started using the '-O' option, so we can rely on this to determine if we should use the debug database or not.
anna added this to the Emmental 2.10 milestone 2021-10-13 15:07:41 -04:00
anna closed this issue 2021-12-26 13:23:42 -05:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: anna/emmental#27
No description provided.