Spaces:
Sleeping
Sleeping
stefanches7
commited on
Commit
·
f6f1751
1
Parent(s):
0bdbd77
add argument to extract xml cli
Browse files
extract_dir_structure_xml.py
CHANGED
|
@@ -2,7 +2,7 @@ import sys
|
|
| 2 |
from pathlib import Path
|
| 3 |
import xml.etree.ElementTree as ET
|
| 4 |
|
| 5 |
-
FOLDER_LOCATION =
|
| 6 |
|
| 7 |
def build_xml(dir_path: Path, root_level: bool = True) -> ET.Element:
|
| 8 |
"""
|
|
|
|
| 2 |
from pathlib import Path
|
| 3 |
import xml.etree.ElementTree as ET
|
| 4 |
|
| 5 |
+
FOLDER_LOCATION = sys.argv[1] if len(sys.argv) > 1 else "sample_dataset"
|
| 6 |
|
| 7 |
def build_xml(dir_path: Path, root_level: bool = True) -> ET.Element:
|
| 8 |
"""
|