Append directory to relative paths in project file. By default, the project file paths are read and written as
        relative paths. Use this method to prepend a directory to all the paths in the project file.

        Args:
            directory (str): Directory path to prepend to file paths in project file.
            projectFilePath (str): Path to project file that will be modified.

def appendDirectory(self, directory, projectFilePath):
        """
        Append directory to relative paths in project file. By default, the project file paths are read and written as
        relative paths. Use this method to prepend a directory to all the paths in the project file.

        Args:
            directory (str): Directory path to prepend to file paths in project file.
            projectFilePath (str): Path to project file that will be modified.
        """
        lines = []
        with open(projectFilePath, 'r') as original:
            for l in original:
                lines.append(l)

        with open(projectFilePath, 'w') as new:
            for line in lines:
                card = {}
                try:
                    card = self._extractCard(line)

                except:
                    card = self._extractDirectoryCard(line)

                # Determine number of spaces between card and value for nice alignment
                numSpaces = max(2, 25 - len(card['name']))

                if card['value'] is None:
                    rewriteLine = '%s\n' % (card['name'])
                else:
                    if card['name'] == 'WMS':
                        rewriteLine = '%s %s\n' % (card['name'], card['value'])

                    elif card['name'] == 'PROJECT_PATH':
                        filePath = '"%s"' % os.path.normpath(directory)
                        rewriteLine = '%s%s%s\n' % (card['name'], ' ' * numSpaces, filePath)

                    elif '"' in card['value']:
                        filename = card['value'].strip('"')
                        filePath = '"%s"' % os.path.join(directory, filename)
                        rewriteLine = '%s%s%s\n' % (card['name'], ' ' * numSpaces, filePath)

                    else:
                        rewriteLine = '%s%s%s\n' % (card['name'], ' ' * numSpaces, card['value'])

                new.write(rewriteLine)