From 23817bdc4cf1394a78af62a2532d0a8c62d0dbb5 Mon Sep 17 00:00:00 2001 From: Jakub Trllo Date: Fri, 6 Jan 2023 12:17:46 +0100 Subject: [PATCH] formatting changes --- openpype/tools/push_to_project/control_integrate.py | 5 ++++- openpype/tools/push_to_project/window.py | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/openpype/tools/push_to_project/control_integrate.py b/openpype/tools/push_to_project/control_integrate.py index 7ad2e1e874..522d0f7a31 100644 --- a/openpype/tools/push_to_project/control_integrate.py +++ b/openpype/tools/push_to_project/control_integrate.py @@ -409,7 +409,10 @@ class ProjectPushRepreItem: filepath_template = file_info["path"].replace("\\", "/") filepath = filepath_template.format(root=self._roots) dirpath, basename = os.path.split(filepath_template) - if dirpath != src_dirpath or not src_basename_regex.match(basename): + if ( + dirpath != src_dirpath + or not src_basename_regex.match(basename) + ): relative_dir = dirpath.replace(src_dirpath, "") if relative_dir: relative_path = "/".join([relative_dir, basename]) diff --git a/openpype/tools/push_to_project/window.py b/openpype/tools/push_to_project/window.py index 5dea0401cb..c43ecad160 100644 --- a/openpype/tools/push_to_project/window.py +++ b/openpype/tools/push_to_project/window.py @@ -1,4 +1,3 @@ -import re import collections from qtpy import QtWidgets, QtGui, QtCore