-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
41 lines (40 loc) · 1.43 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# ==============================================================================
# File : main.py
#
# Current Author : Robert Hewlett
#
# Previous Author : None
#
# Contact Info : rob.hewy@gmail.com
#
# Purpose : Unpack and organize a D2L dropbox file
#
# Dependencies : courseUtils, StudentInfo
#
# Modification Log :
# --> Created 2019-09-19 (rh)
# --> Updated YYYY-MM-DD (fl)
#
# =============================================================================
import courseUtils as u
#====================================================
# Get parent dir
#====================================================
parentDir = input('Enter the folder with the dropbox file:')
u.unzipDropboxFile(parentDir)
#====================================================
# Create a blank student list
#====================================================
studentList = u.makeStudentList(parentDir)
#====================================================
# make the directories # print(studentList)
#====================================================
u.makeStudentDirs(parentDir, studentList)
#====================================================
# Move the file
#====================================================
u.moveStudentFiles(parentDir, studentList)
#====================================================
# Unpack any student zipfiles
#====================================================
u.unzipStudentFiles(parentDir, studentList)