diff --git a/pype/ftrack/lib/ftrack_app_handler.py b/pype/ftrack/lib/ftrack_app_handler.py index a3d3480a5e..2430f44ae7 100644 --- a/pype/ftrack/lib/ftrack_app_handler.py +++ b/pype/ftrack/lib/ftrack_app_handler.py @@ -264,7 +264,7 @@ class AppAction(BaseHandler): if execfile is None: return { "success": False, - "message": "We didn't found launcher for {0}".format( + "message": "We didn't find launcher for {0}".format( self.label ) } diff --git a/pype/plugins/global/publish/collect_rendered_files.py b/pype/plugins/global/publish/collect_rendered_files.py index e79be1c4ae..1c9a8c1f94 100644 --- a/pype/plugins/global/publish/collect_rendered_files.py +++ b/pype/plugins/global/publish/collect_rendered_files.py @@ -86,7 +86,7 @@ class CollectRenderedFiles(pyblish.api.ContextPlugin): if project_name is None: root = None self.log.warning( - "Environment `AVLAON_PROJECT` was not found." + "Environment `AVALON_PROJECT` was not found." "Could not set `root` which may cause issues." ) else: diff --git a/pype/tools/texture_copy/app.py b/pype/tools/texture_copy/app.py index 624082f00c..5f89db53ff 100644 --- a/pype/tools/texture_copy/app.py +++ b/pype/tools/texture_copy/app.py @@ -46,7 +46,7 @@ class TextureCopy: return asset def _get_destination_path(self, asset, project): - project_name = api.Session["AVALON_PROJECT"] + project_name = project["name"] hierarchy = "" parents = asset['data']['parents'] if parents and len(parents) > 0: @@ -63,8 +63,9 @@ class TextureCopy: "subset": 'Main', "hierarchy": hierarchy } - anatomy_filled = Anatomy(project_name).format(template_data) - return os.path.normpath(anatomy_filled['texture']['path']) + anatomy = Anatomy(project_name) + anatomy_filled = anatomy.format(template_data) + return anatomy_filled['texture']['path'] def _get_version(self, path): versions = [0]