Skip to content

Commit

Permalink
Clean up scr/ directory
Browse files Browse the repository at this point in the history
* remove scr/abjad-log
* remove scr/fix-tests
* remove scr/make-packaging-transcript
* remove scr/trash

OLD: scr/abjad
NEW: scr/abjad.py

OLD: scr/prime-parser-tables
NEW: scr/prime_parser_tables.py

OLD: scr/timer
NEW: scr/timer.py

OLD: scr/write-parser-syntax-skeleton
NEW: scr/write_parser_syntax_skeleton.py
  • Loading branch information
trevorbaca committed Jan 24, 2025
1 parent 6796c66 commit 8f880cb
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 339 deletions.
2 changes: 1 addition & 1 deletion abjad/contextmanagers.py
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ def __enter__(self) -> "Timer":
self._stop_time = None
self._start_time = time.time()
if self.print_continuously_from_background:
path = configuration.abjad_directory.parent / "scr" / "timer"
path = configuration.abjad_directory.parent / "scr" / "timer.py"
interval = str(int(self.print_continuously_from_background))
process = subprocess.Popen([path, interval], shell=False)
self._process = process
Expand Down
4 changes: 0 additions & 4 deletions scr/abjad-log

This file was deleted.

1 change: 0 additions & 1 deletion scr/abjad → scr/abjad.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#! /usr/bin/env python
import pathlib
import sys

import abjad
Expand Down
166 changes: 0 additions & 166 deletions scr/fix-tests

This file was deleted.

130 changes: 0 additions & 130 deletions scr/make-packaging-transcript

This file was deleted.

File renamed without changes.
5 changes: 5 additions & 0 deletions scr/timer → scr/timer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#! /usr/bin/env python

"""
Called by abjad.contextmanager.Timer on __enter__().
"""

import sys
import time

Expand Down
35 changes: 0 additions & 35 deletions scr/trash

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def usage():
result.append("Usage:")
result.append("")
result.append(
"write-parser-syntax-skeleton PARSER_output_PATH PARSER_TAB_HH_PATH SKELETON_PATH"
"write_parser_syntax_skeleton.py PARSER_output_PATH PARSER_TAB_HH_PATH SKELETON_PATH"
)
result.append("")
result.append(
Expand All @@ -29,7 +29,9 @@ def write(parser_output_path, parser_tab_hh_path, skeleton_path):
assert os.path.exists(parser_output_path)
assert os.path.exists(parser_tab_hh_path)
LilyPondGrammarGenerator()._write_parser_syntax_skeleton(
skeleton_path, parser_output_path, parser_tab_hh_path,
skeleton_path,
parser_output_path,
parser_tab_hh_path,
)


Expand Down

0 comments on commit 8f880cb

Please sign in to comment.