()
Creates a batch file into the project root to be able to easily launch the
    Ardublockly application.
Creates a batch file into the project root to be able to easily launch the
    Ardublockly application.
Creates a batch file into the project root to be able to easily launch the Ardublockly application .
def create_run_batch_file():
    """
    Creates a batch file into the project root to be able to easily launch the
    Ardublockly application.
    """
    batch_text = "@echo off\n" + \
                 "start %s\start_cef.exe \"%%cd%%\"" % exec_folder_name
    try:
        batch_file = open(("%s/ardublockly_run.bat" % project_root_dir), 'w')
        batch_file.write(batch_text)
        batch_file.close()
        print(script_tab + "Batch file created in " +
              "%s/ardublockly_run.bat" % project_root_dir)
    except Exception as e:
        print("%s\n" % e + script_tab +
              "Batch file to run Ardublockly could not be created !")
def create_run_batch_file ( ) : batch_text = "@echo off\n" + "start %s\start_cef.exe \"%%cd%%\"" % exec_folder_name try : batch_file = open ( ( "%s/ardublockly_run.bat" % project_root_dir ) , 'w' ) batch_file . write ( batch_text ) batch_file . close ( ) print ( script_tab + "Batch file created in " + "%s/ardublockly_run.bat" % project_root_dir ) except Exception as e : print ( "%s\n" % e + script_tab + "Batch file to run Ardublockly could not be created !" )