# \import and \includegraphics with macros: Preserving local path at macro definition time

I have been banging my head on this problem for a few days, trying many combinations of \def, \edef, \noexpand, \expandafter, etc.

Say I have a module at /tmp/module/ which contains module.tex and image.png. In module.tex I define a macro which, among other things, uses \includegraphics to pull in the image within this submodule with a relative path:

% module.tex
Quiz #1
\includegraphics[width=1.5in]{image.png}
}

And then from my main document I do an \import or \subimport, and then try to use the \myQuizHeader macro:

% main.tex
\documentclass[11pt,letterpaper]{article}
\usepackage{graphicx}
\usepackage{import}

\begin{document}
\import{/tmp/module/}{module.tex}