parameters: (self)
docstring: Create a batch / bash file
docstring_summary: Create a batch / bash file
docstring_tokens: Create a batch / bash file
function: def createBatch(self):
          "Create a batch / bash file "
  
          # use bat as extension, as only Windows needs the extension .bat
          self.filename("run.bat", "run.bat", False)
  
          with open(self.files["run.bat"], "w") as batchfile:
              batchfile.write("sumo-gui -c " + self.files_relative["config"])
  
          os.chmod(self.files["run.bat"], BATCH_MODE)
function_tokens: def createBatch ( self ) : # use bat as extension, as only Windows needs the extension .bat self . filename ( "run.bat" , "run.bat" , False ) with open ( self . files [ "run.bat" ] , "w" ) as batchfile : batchfile . write ( "sumo-gui -c " + self . files_relative [ "config" ] ) os . chmod ( self . files [ "run.bat" ] , BATCH_MODE )