parameters: (self, args, assemblymode)
docstring: self.name is input file name (minus extension) + any optional arguments.
          Used to generate output filenames
docstring_summary: self.name is input file name (minus extension) + any optional arguments.
          Used to generate output filenames
docstring_tokens: self . name is input file name ( minus extension ) + any optional arguments . Used to generate output filenames
function: def init_names(self, args, assemblymode):
          # ignore path to file - source must be in Programs/Source
          if 'Programs' in os.listdir(os.getcwd()):
              # compile prog in ./Programs/Source directory
              self.programs_dir = os.getcwd() + '/Programs'
          else:
              # assume source is in main SPDZ directory
              self.programs_dir = sys.path[0] + '/Programs'
          print 'Compiling program in', self.programs_dir
          
          # create extra directories if needed
          for dirname in ['Public-Input', 'Bytecode', 'Schedules']:
              if not os.path.exists(self.programs_dir + '/' + dirname):
                  os.mkdir(self.programs_dir + '/' + dirname)
          
          progname = args[0].split('/')[-1]
          if progname.endswith('.mpc'):
              progname = progname[:-4]
          
          if assemblymode:
              self.infile = self.programs_dir + '/Source/' + progname + '.asm'
          else:
              self.infile = self.programs_dir + '/Source/' + progname + '.mpc'
          """
          self.name is input file name (minus extension) + any optional arguments.
          Used to generate output filenames
          """
          self.name = progname
          if len(args) > 1:
              self.name += '-' + '-'.join(args[1:])
function_tokens: def init_names ( self , args , assemblymode ) : # ignore path to file - source must be in Programs/Source if 'Programs' in os . listdir ( os . getcwd ( ) ) : # compile prog in ./Programs/Source directory self . programs_dir = os . getcwd ( ) + '/Programs' else : # assume source is in main SPDZ directory self . programs_dir = sys . path [ 0 ] + '/Programs' print 'Compiling program in' , self . programs_dir # create extra directories if needed for dirname in [ 'Public-Input' , 'Bytecode' , 'Schedules' ] : if not os . path . exists ( self . programs_dir + '/' + dirname ) : os . mkdir ( self . programs_dir + '/' + dirname ) progname = args [ 0 ] . split ( '/' ) [ - 1 ] if progname . endswith ( '.mpc' ) : progname = progname [ : - 4 ] if assemblymode : self . infile = self . programs_dir + '/Source/' + progname + '.asm' else : self . infile = self . programs_dir + '/Source/' + progname + '.mpc' self . name = progname if len ( args ) > 1 : self . name += '-' + '-' . join ( args [ 1 : ] )