mirror of
https://github.com/Rushilwiz/SkoolOS.git
synced 2025-04-17 02:40:19 -04:00
make dir
This commit is contained in:
parent
00409c5cda
commit
e28cd56f53
|
@ -164,6 +164,7 @@ class Teacher:
|
||||||
os.mkdir(self.username + "/" + c)
|
os.mkdir(self.username + "/" + c)
|
||||||
print("Updated: " + c)
|
print("Updated: " + c)
|
||||||
command("touch " + self.username + "/" + c + "/README.md")
|
command("touch " + self.username + "/" + c + "/README.md")
|
||||||
|
os.makedirs(self.username + "/Students/" + c)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
os.makedirs(self.username + "/Students")
|
os.makedirs(self.username + "/Students")
|
||||||
|
@ -298,6 +299,7 @@ class Teacher:
|
||||||
os.mkdir(path)
|
os.mkdir(path)
|
||||||
f = open(path + "/README.md", "w")
|
f = open(path + "/README.md", "w")
|
||||||
f.close()
|
f.close()
|
||||||
|
os.makedirs(self.username + "/Students/" + cname)
|
||||||
# push to remote repo
|
# push to remote repo
|
||||||
# os.chdir(path)
|
# os.chdir(path)
|
||||||
# for a in assignments:
|
# for a in assignments:
|
||||||
|
|
|
@ -38,7 +38,10 @@ You will then be given the choice to select an existing class, Make a new class,
|
||||||
1. Making a new class:
|
1. Making a new class:
|
||||||
-------
|
-------
|
||||||
|
|
||||||
Select 'Make a New Class'. You will then be prompted to enter a class name. The format for every class must be <subject>_<teacher_username> (Example: Art12_eharris1).
|
Select 'Make a New Class'. You will then be prompted to enter a class name. The format for every class must be <subject>_<teacher_username> (Example: Art12_eharris1).
|
||||||
|
Enter Period (must be a positive integer). You will then be prompted to add students. If you have a list of students, enter the relative path of a text file with the student usernames.
|
||||||
|
The file must be a .txt file and have one student username per line. If you add an individual student, simply enter their ion username.
|
||||||
|
one username per line.
|
||||||
|
|
||||||
? Select class: (Use arrow keys)
|
? Select class: (Use arrow keys)
|
||||||
Art12_eharris1
|
Art12_eharris1
|
||||||
|
@ -47,6 +50,17 @@ Select 'Make a New Class'. You will then be prompted to enter a class name. The
|
||||||
❯ Make New Class
|
❯ Make New Class
|
||||||
Exit SkoolOS
|
Exit SkoolOS
|
||||||
|
|
||||||
|
? Add Students): (Use arrow keys)
|
||||||
|
❯ 1) Add individual student
|
||||||
|
2) Add list of students through path
|
||||||
|
3) Exit
|
||||||
|
|
||||||
|
? Add Students): 2) Add list of students through path
|
||||||
|
File must be .txt and have 1 student username per line
|
||||||
|
Relative Path: students.txt
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
0
eharris1/Civ_eharris1/README.md
Normal file
0
eharris1/Civ_eharris1/README.md
Normal file
0
eharris1/Random_eharris1/README.md
Normal file
0
eharris1/Random_eharris1/README.md
Normal file
|
@ -1 +1,2 @@
|
||||||
2022rkhondak
|
2022rkhondak
|
||||||
|
2023rmama
|
Loading…
Reference in New Issue
Block a user