-
-
Notifications
You must be signed in to change notification settings - Fork 85
Expand file tree
/
Copy pathtest.py
More file actions
19 lines (16 loc) · 596 Bytes
/
test.py
File metadata and controls
19 lines (16 loc) · 596 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import pretty_errors
pretty_errors.configure(
separator_character = '*',
filename_display = pretty_errors.FILENAME_FULL,
lines_before=10,
code_color = pretty_errors.default_config.line_color,
stack_depth=2,
exception_file_color=pretty_errors.BRIGHT_BLUE
)
irrelevant = pretty_errors.config.copy()
irrelevant.line_color = irrelevant.code_color = irrelevant.filename_color = irrelevant.function_color = irrelevant.line_number_color = (
pretty_errors.GREY
)
pretty_errors.pathed_config(irrelevant, 'c:/python', 'c:/users')
import os
os.rename('nofile', 'stillnofile')