File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99import sys
1010import textwrap
1111import traceback
12+ from pathlib import Path
1213
1314# Third-party
1415from pygments import highlight
2728
2829# Constants
2930QUARTER = os .path .basename (PATHS ["data_quarter" ])
30- SECTION = "1-gcs_report.py"
31+ SECTION = Path ( __file__ ). name
3132
3233
3334def parse_arguments ():
Original file line number Diff line number Diff line change 99import sys
1010import textwrap
1111import traceback
12+ from pathlib import Path
1213
1314# Third-party
1415from pygments import highlight
2526# Setup
2627LOGGER , PATHS = shared .setup (__file__ )
2728QUARTER = os .path .basename (PATHS ["data_quarter" ])
28- SECTION = "2-github_report.py"
29+ SECTION = Path ( __file__ ). name
2930
3031
3132def parse_arguments ():
Original file line number Diff line number Diff line change 99import sys
1010import textwrap
1111import traceback
12+ from pathlib import Path
1213
1314# Third-party
1415from pygments import highlight
2526# Setup
2627LOGGER , PATHS = shared .setup (__file__ )
2728QUARTER = os .path .basename (PATHS ["data_quarter" ])
28- SECTION = "3-openverse_report.py"
29+ SECTION = Path ( __file__ ). name
2930
3031
3132def parse_arguments ():
Original file line number Diff line number Diff line change 99import sys
1010import textwrap
1111import traceback
12+ from pathlib import Path
1213
1314# Third-party
1415from pygments import highlight
2526# Setup
2627LOGGER , PATHS = shared .setup (__file__ )
2728QUARTER = os .path .basename (PATHS ["data_quarter" ])
28- SECTION = "4-wikipedia_report.py"
29+ SECTION = Path ( __file__ ). name
2930
3031
3132def parse_arguments ():
Original file line number Diff line number Diff line change 88import sys
99import textwrap
1010import traceback
11+ from pathlib import Path
1112
1213# Third-party
1314from pygments import highlight
2526
2627# Constants
2728QUARTER = os .path .basename (PATHS ["data_quarter" ])
28- SECTION = "100-notes.py"
29+ SECTION = Path ( __file__ ). name
2930
3031
3132def parse_arguments ():
You can’t perform that action at this time.
0 commit comments