import os
if not os.environ.get("RMG_workingDirectory"):
    import os.path
    message = "Please set your RMG_workingDirectory environment variable.\n" +\
        "(eg. export RMG_workingDirectory=%s )" % \
        os.path.abspath(os.path.join(os.path.dirname(__file__),'..'))
    raise Exception(message)

Check for RMG_workingDirectory environment variable in qmtp_package
Check for RMG_workingDirectory environment variable in qmtp_package

I dislike the way this is needed, but for now this commit will at least help people
discover their mistake if they forget.