Skip to content

Commit

Permalink
Use fix_path when comparing cmake arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
langmm committed Jul 11, 2024
1 parent e4f5409 commit 3ae0ad7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yggdrasil/drivers/CMakeModelDriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,8 @@ def get_executable_command(cls, args, **kwargs):
if (args == cls.version_flags) or ('--help' in args):
new_args = args
if args and not kwargs.get('skip_flags', False):
args_dir = os.path.dirname(args[0])
args_dir = cls.fix_path(os.path.dirname(args[0]),
context='flag')
sourcedir = kwargs.get('sourcedir', args_dir)
if sourcedir != args_dir: # pragma: debug
raise RuntimeError(
Expand Down

0 comments on commit 3ae0ad7

Please sign in to comment.