Rakib023 commited on
Commit
758a1eb
·
verified ·
1 Parent(s): 08b1fbc

Create utils.py

Browse files
Files changed (1) hide show
  1. utils.py +10 -0
utils.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import yaml
2
+ import os
3
+
4
+ def read_yaml(path):
5
+ with open(path) as f:
6
+ return yaml.safe_load(f)
7
+
8
+ def create_dirs(paths):
9
+ for p in paths:
10
+ os.makedirs(p, exist_ok=True)