\r
import CommonDataClass.FdfClass\r
from Common.LongFilePathSupport import OpenLongFilePath as open\r
+from Common.MultipleWorkspace import MultipleWorkspace as mws\r
\r
##define T_CHAR_SPACE ' '\r
##define T_CHAR_NULL '\0'\r
IncFileName = self.__Token\r
if not os.path.isabs(IncFileName):\r
if IncFileName.startswith('$(WORKSPACE)'):\r
- Str = IncFileName.replace('$(WORKSPACE)', os.environ.get('WORKSPACE'))\r
+ Str = mws.handleWsMacro(IncFileName)\r
+ Str = Str.replace('$(WORKSPACE)', os.environ.get('WORKSPACE'))\r
if os.path.exists(Str):\r
if not os.path.isabs(Str):\r
Str = os.path.abspath(Str)\r
# file is in the same dir with FDF file\r
FullFdf = self.FileName\r
if not os.path.isabs(self.FileName):\r
- FullFdf = os.path.join(os.environ.get('WORKSPACE'), self.FileName)\r
+ FullFdf = mws.join(os.environ.get('WORKSPACE'), self.FileName)\r
\r
IncFileName = os.path.join(os.path.dirname(FullFdf), IncFileName)\r
\r