Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1125 from pypeclub/bugfix/avoid_dot_in_repre_exte…
Browse files Browse the repository at this point in the history
…nsion

Avoid dot in repre extension
  • Loading branch information
mkolar authored Mar 12, 2021
2 parents 9ce04fe + 36e5f91 commit 04fd635
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pype/plugins/global/publish/integrate_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,17 @@ def register(self, instance):

sequence_repre = isinstance(files, list)
repre_context = None

ext = repre["ext"]
if ext.startswith("."):
self.log.warning((
"Implementaion warning: <\"{}\">"
" Representation's extension stored under \"ext\" key "
" started with dot (\"{}\")."
).format(repre["name"], ext))
ext = ext[1:]
repre["ext"] = ext

if sequence_repre:
self.log.debug(
"files: {}".format(files))
Expand Down

0 comments on commit 04fd635

Please sign in to comment.