Skip to content

Commit

Permalink
fix ci import_control maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
sezanzeb committed Oct 3, 2024
1 parent 332837b commit f8f21ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/test_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
from importlib.machinery import SourceFileLoader
from importlib.util import spec_from_loader, module_from_spec
from unittest.mock import patch
import re

from inputremapper.configs.global_config import GlobalConfig
from inputremapper.configs.migrations import Migrations
Expand All @@ -43,8 +44,7 @@
def import_control():
"""Import the core function of the input-remapper-control command."""
bin_path = os.path.join(
os.getcwd().rsplit("input-remapper")[0],
"input-remapper",
re.sub("/tests.*", "", os.getcwd()),
"bin",
"input-remapper-control",
)
Expand Down

0 comments on commit f8f21ce

Please sign in to comment.