Suppress Warning “You have requested package `”blablabla/thepackage”‘, but the package provides `thepackage’.”

packageswarnings

In a main tex file, I load my style file mypackage.sty by

\usepackage{blablabla/mypackage}

This absolute reference is inevitable for my purpose (impossible to change the location of the style file)

The code runs well, but it always raises a warning:

"You have requested package "blablabla/mypackage", but the package provides mypackage."

I can understand why it raises a warning, but How can I suppress this warning?

Best Answer

I had the same problem, and solved it by writing \ProvidesPackage{blablabla/mypackage} in the .sty file like this:

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{blablabla/mypackage}