ygrader 2.6.0__tar.gz → 2.6.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ygrader-2.6.0/ygrader.egg-info → ygrader-2.6.2}/PKG-INFO +1 -1
- {ygrader-2.6.0 → ygrader-2.6.2}/setup.py +1 -1
- {ygrader-2.6.0 → ygrader-2.6.2}/ygrader/utils.py +5 -2
- {ygrader-2.6.0 → ygrader-2.6.2/ygrader.egg-info}/PKG-INFO +1 -1
- {ygrader-2.6.0 → ygrader-2.6.2}/LICENSE +0 -0
- {ygrader-2.6.0 → ygrader-2.6.2}/setup.cfg +0 -0
- {ygrader-2.6.0 → ygrader-2.6.2}/test/test_interactive.py +0 -0
- {ygrader-2.6.0 → ygrader-2.6.2}/test/test_unittest.py +0 -0
- {ygrader-2.6.0 → ygrader-2.6.2}/ygrader/__init__.py +0 -0
- {ygrader-2.6.0 → ygrader-2.6.2}/ygrader/deductions.py +0 -0
- {ygrader-2.6.0 → ygrader-2.6.2}/ygrader/feedback.py +0 -0
- {ygrader-2.6.0 → ygrader-2.6.2}/ygrader/grader.py +0 -0
- {ygrader-2.6.0 → ygrader-2.6.2}/ygrader/grades_csv.py +0 -0
- {ygrader-2.6.0 → ygrader-2.6.2}/ygrader/grading_item.py +0 -0
- {ygrader-2.6.0 → ygrader-2.6.2}/ygrader/grading_item_config.py +0 -0
- {ygrader-2.6.0 → ygrader-2.6.2}/ygrader/remote.py +0 -0
- {ygrader-2.6.0 → ygrader-2.6.2}/ygrader/score_input.py +0 -0
- {ygrader-2.6.0 → ygrader-2.6.2}/ygrader/send_ctrl_backtick.ahk +0 -0
- {ygrader-2.6.0 → ygrader-2.6.2}/ygrader/student_repos.py +0 -0
- {ygrader-2.6.0 → ygrader-2.6.2}/ygrader/upstream_merger.py +0 -0
- {ygrader-2.6.0 → ygrader-2.6.2}/ygrader.egg-info/SOURCES.txt +0 -0
- {ygrader-2.6.0 → ygrader-2.6.2}/ygrader.egg-info/dependency_links.txt +0 -0
- {ygrader-2.6.0 → ygrader-2.6.2}/ygrader.egg-info/requires.txt +0 -0
- {ygrader-2.6.0 → ygrader-2.6.2}/ygrader.egg-info/top_level.txt +0 -0
|
@@ -4,7 +4,7 @@ setup(
|
|
|
4
4
|
name="ygrader",
|
|
5
5
|
packages=["ygrader"],
|
|
6
6
|
package_data={"ygrader": ["*.ahk"]},
|
|
7
|
-
version="2.6.
|
|
7
|
+
version="2.6.2",
|
|
8
8
|
description="Grading scripts used in BYU's Electrical and Computer Engineering Department",
|
|
9
9
|
author="Jeff Goeders",
|
|
10
10
|
author_email="jeff.goeders@gmail.com",
|
|
@@ -162,13 +162,16 @@ def is_wsl():
|
|
|
162
162
|
_FOCUS_WARNING_PRINTED = False
|
|
163
163
|
|
|
164
164
|
|
|
165
|
-
def open_file_in_vscode(file_path):
|
|
165
|
+
def open_file_in_vscode(file_path, sleep_time=1.0):
|
|
166
166
|
"""Open a file in VS Code and return focus to terminal.
|
|
167
167
|
|
|
168
168
|
Parameters
|
|
169
169
|
----------
|
|
170
170
|
file_path: pathlib.Path or str
|
|
171
171
|
Path to the file to open in VS Code
|
|
172
|
+
sleep_time: float, optional
|
|
173
|
+
Time in seconds to wait for VS Code to open before returning focus to terminal.
|
|
174
|
+
Default is 1.0 seconds.
|
|
172
175
|
"""
|
|
173
176
|
global _FOCUS_WARNING_PRINTED # pylint: disable=global-statement
|
|
174
177
|
|
|
@@ -191,7 +194,7 @@ def open_file_in_vscode(file_path):
|
|
|
191
194
|
error(f"VS Code exited with code {result.returncode}")
|
|
192
195
|
|
|
193
196
|
# Give VS Code a moment to open, then send Ctrl+` to toggle terminal focus
|
|
194
|
-
time.sleep(
|
|
197
|
+
time.sleep(sleep_time)
|
|
195
198
|
|
|
196
199
|
# Use AutoHotkey on WSL, osascript on macOS, xdotool on Linux
|
|
197
200
|
if is_wsl():
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|