Skip to content

Commit

Permalink
Solve issue with relative paths
Browse files Browse the repository at this point in the history
  • Loading branch information
sevisal committed Oct 3, 2023
1 parent 0124cfc commit 614cdf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vai_lab/Data/xml_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
root_mod = path.dirname(path.dirname(path.dirname(__file__)))
sys.path.append(root_mod)

from vai_lab._import_helper import get_lib_parent_dir
from vai_lab._import_helper import get_lib_parent_dir, rel_to_abs


class XML_handler:
Expand Down Expand Up @@ -567,7 +567,7 @@ def append_input_data(self,
if save_dir_as_relative:
data_dir = data_dir.replace(self.lib_base_path, "./")
data_dir = data_dir.replace("\\", "/")
if path.exists(path.dirname(data_dir)):
if path.exists(path.dirname(rel_to_abs(data_dir))):
plugin_elem.set('file', data_dir)
else:
plugin_elem.set('module', data_dir)
Expand Down

0 comments on commit 614cdf6

Please sign in to comment.