+ #Get PE Section alignment when align is set to AUTO\r
+ if self.Alignment == 'Auto' and self.SecType in ('TE', 'PE32'):\r
+ ImageObj = PeImageClass (Filename)\r
+ if ImageObj.SectionAlignment < 0x400:\r
+ self.Alignment = str (ImageObj.SectionAlignment)\r
+ else:\r
+ self.Alignment = str (ImageObj.SectionAlignment / 0x400) + 'K'\r
+\r