Skip to content

Not enough information from format error #87

@mottosso

Description

@mottosso

Related

Reproducible

name = "test"
version = "0.0"
build_command = False

def commands():
  global env
  env["PATH"].append("{root}/{this/is/bad"))
rez build --install  # ok
rez env test
07:55:01 ERROR    PackageCommandError: Error in commands in package 'C:\\Users\\marcus\\packages\\test\\1.1\\package.py[]':
expected '}' before end of string

Where? If there's a line number provided, that line number is related the commands() function, rather than the actual Python module, due to how Rez doesn't actually import and maintain reference to the file, but does so "manually", throwing away that kind of information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions