diff --git a/pyblish_maya/plugins/collect_current_file.py b/pyblish_maya/plugins/collect_current_file.py index df67d3b..6c8d71c 100644 --- a/pyblish_maya/plugins/collect_current_file.py +++ b/pyblish_maya/plugins/collect_current_file.py @@ -19,6 +19,9 @@ def process(self, context): # Maya returns forward-slashes by default normalised = os.path.normpath(current_file) + if normalised == ".": + # 'normpath' returns '.' when given an empty string + normalised = "" context.set_data('currentFile', value=normalised)