Windows compatibility
This commit is contained in:
+7
-6
@@ -1,15 +1,16 @@
|
||||
import argparse
|
||||
import json
|
||||
import os
|
||||
import sys
|
||||
import json
|
||||
import ezodf
|
||||
import re
|
||||
from pathlib import Path
|
||||
|
||||
from utils import natural_key, read_all_labels
|
||||
import ezodf
|
||||
|
||||
from config import CURRENT_SCORE_ODS_PATH
|
||||
from utils import read_all_labels
|
||||
|
||||
# Configuration
|
||||
ODS_PATH = "/home/sebastien/Rust/gestion_classe/Staging/current_eval.ods"
|
||||
ODS_PATH = Path(CURRENT_SCORE_ODS_PATH).expanduser()
|
||||
TARGET_DIR_NAME = "A Rendre"
|
||||
|
||||
def main():
|
||||
@@ -34,7 +35,7 @@ def main():
|
||||
|
||||
print(f"Opening ODS file: {ODS_PATH}...")
|
||||
try:
|
||||
doc = ezodf.opendoc(ODS_PATH)
|
||||
doc = ezodf.opendoc(str(ODS_PATH))
|
||||
except Exception as e:
|
||||
print(f"Failed to open ODS: {e}")
|
||||
sys.exit(1)
|
||||
|
||||
Reference in New Issue
Block a user