\let\partinput=\@input

\def\part#1{
	\ifx\dontuseparts\undefined
		\partinput{#1.aux}
		\def\endpart{\end{document}}
	\else
		\def\endpart{}
	\fi
}
