Skip to content

Commit bfa52da

Browse files
Merge pull request #55 from ARC-Lab-UF/dev
Fixed weird windows issues
2 parents f747ea6 + ad23e11 commit bfa52da

4 files changed

Lines changed: 11 additions & 75 deletions

File tree

.vscode/launch.json

Lines changed: 0 additions & 70 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ There are two methods to select students to grade: By section number, or via a l
4343

4444
<details><summary>Select by Section Number</summary>
4545

46-
To use the `--section` flag, a file named `students.csv` must be downloaded to the project directory. This file contains information about students in the course, including each students' section number.
46+
To use the `--section` flag, a file named `all_students.csv` must be downloaded to the project directory. This file contains information about students in the course, including each students' section number.
4747
### Download Student Data
4848

4949
1. Navigate to the course gradebook on Canvas.
5050
2. Click "Actions > Export" as shown in the below image.
5151

5252
![Image showing the highlighted export button the user should press in the Canvas gradebook to download a CSV of students in the course](images/export-students.png)
5353

54-
Save this file as `students.csv` in the root directory (the same directory as this README file). It should be structured similarly to `all_students_example.csv`, but may include additional information, like assignment grades.
54+
Save this file as `all_students.csv` in the root directory (the same directory as this README file). It should be structured similarly to `all_students_example.csv`, but may include additional information, like assignment grades.
5555

5656
When running the grader, use `--section <section number>` to specify a section number you wish to grade. Section numbers are 5-digit numbers seen in the parentheses on a students' section ID string. For example, in the class/section identifier `EEL4712C-0001(11624)`, `11624` is the section number.
5757
</details>

scripts/generate_tcl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
def get_testbench_paths(lab_name: str) -> List[str]:
88
lab_tb_dir = Path("lab-testbenches") / lab_name
9-
tb_paths = [str(path.resolve()) for path in lab_tb_dir.glob("*.vhd")]
9+
tb_paths = [str(path.resolve().as_posix()) for path in lab_tb_dir.glob("*.vhd")]
1010
return tb_paths
1111

1212
def generate_tcl(
@@ -49,7 +49,7 @@ def generate_tcl(
4949
tcl = (
5050
ORIGINAL_TCL
5151
.replace("<PY_LAB_TESTBENCHES>", LAB_TCL)
52-
.replace("<PY_PROJ_HOMEDIR>", str(SIM_DIR))
52+
.replace("<PY_PROJ_HOMEDIR>", SIM_DIR.resolve().as_posix())
5353
.replace("<PY_PROJ_NAME>", f"{student.name}_{lab_name}")
5454
.replace("<PY_STUDENT_SRC_FILES>", file_add_cmds)
5555
.replace("<PY_STUDENT_NAME>", tcl_name)

tcl-templates/common.tcl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ set proj_name "<PY_PROJ_NAME>"
99

1010
# make the directory first, so that GUI mode (if used)
1111
# doesn't prompt you asking to create it.
12-
mkdir -p $proj_homedir
12+
if {[catch {mkdir $proj_homedir}]} {
13+
puts "Dir already exists. Moving on..."
14+
}
1315

1416
# Create a new project
1517
project new $proj_homedir $proj_name
@@ -52,6 +54,10 @@ proc currStudent {student} {
5254

5355
project calculateorder
5456

57+
puts "==============================================================="
58+
puts "Running simulations..."
59+
puts "==============================================================="
60+
5561
# Beginning of lab-specific tcl
5662
<PY_LAB_TESTBENCHES>
5763
# End of lab-specific tcl

0 commit comments

Comments
 (0)