diff COBRAxy/src/utils/rule_parsing.py @ 542:fcdbc81feb45 draft

Uploaded
author francesco_lapi
date Sun, 26 Oct 2025 19:27:41 +0000
parents 2fb97466e404
children
line wrap: on
line diff
--- a/COBRAxy/src/utils/rule_parsing.py	Sat Oct 25 15:20:55 2025 +0000
+++ b/COBRAxy/src/utils/rule_parsing.py	Sun Oct 26 19:27:41 2025 +0000
@@ -9,9 +9,13 @@
 - parseRuleToNestedList: main entry to parse a rule string into an OpList
 """
 from enum import Enum
-import utils.general_utils as utils
 from typing import List, Union, Optional
 
+try:
+    from . import general_utils as utils
+except:
+    import general_utils as utils
+
 class RuleErr(utils.CustomErr):
     """
     Error type for rule syntax errors.