-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprerequisites.py
22 lines (21 loc) · 1.23 KB
/
prerequisites.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import os
curr = os.getcwd()
######################################################
##--- Create required directory structure
######################################################
if not os.path.exists(curr + "/Techtrends/Data"):
os.system("mkdir " + curr + "/Techtrends/Data")
if not os.path.exists(curr + "/Techtrends/Data/feeds"):
os.system("mkdir " + curr + "/Techtrends/Data/feeds")
if not os.path.exists(curr + "/Techtrends/Data/repo_info_files"):
os.system("mkdir " + curr + "/Techtrends/Data/repo_info_files")
if not os.path.exists(curr + "/Techtrends/Data/timeline_files"):
os.system("mkdir " + curr + "/Techtrends/Data/timeline_files")
if not os.path.exists(curr + "/Techtrends/Data/output"):
os.system("mkdir " + curr + "/Techtrends/Data/output")
if not os.path.exists(curr + "/Techtrends/Data/output/Intermediate_and_previous_results"):
os.system("mkdir " + curr + "/Techtrends/Data/output/Intermediate_and_previous_results")
if not os.path.exists(curr + "/Techtrends/Data/output/monthly_derived_metrics"):
os.system("mkdir " + curr + "/Techtrends/Data/output/monthly_derived_metrics")
if not os.path.exists(curr + "/Techtrends/Data/output/score"):
os.system("mkdir " + curr + "/Techtrends/Data/output/score")