-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-dev.py
More file actions
37 lines (26 loc) · 825 Bytes
/
setup-dev.py
File metadata and controls
37 lines (26 loc) · 825 Bytes
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
import os
cwd = os.getcwd()
parent = os.path.dirname(cwd)
def setup_dir(name):
if not os.path.isdir(name):
os.mkdir(name)
base = os.path.join(parent, "flask_processing_app_testing")
setup_dir(base)
archives = os.path.join(base, "Archives")
setup_dir(archives)
sip = os.path.join(archives, "SIP")
setup_dir(sip)
aip = os.path.join(archives, "AIP")
setup_dir(aip)
automated = os.path.join(base, "automated")
setup_dir(automated)
DigitizationExtentTracker = os.path.join(automated, "DigitizationExtentTracker")
setup_dir(DigitizationExtentTracker)
backlog = os.path.join(base, "backlog")
setup_dir(backlog)
ingest = os.path.join(base, "ingest")
setup_dir(ingest)
logs = os.path.join(base, "SPE_DAO")
setup_dir(logs)
logs = os.path.join(base, "processing_logs")
setup_dir(logs)