No announcement yet.

Running Python Through the Command Line

  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    You need to enable the Python plugin for the engine to load by default.
    edit the PythonScriptPlugin.uplugin under "Engine\Plugins\Experimental\PythonScriptPlugin" and change the following to
    "EnabledByDefault" : true,

    Once you do that the "pythonscript" commandlet will load.

    Update: You will also want to enable the EditorScriptingUtilities plugin by default as get access to things like "unreal.EditorAssetLibrary"
    "Engine\Plugins\Editor\EditorScriptingUtilities\EditorScriptingUtilities.uplugin" and change "EnabledByDefault" : true,
    Last edited by cgsquirrel2; 12-07-2018, 03:20 PM.

    Leave a comment:

  • replied
    same problem

    Leave a comment:

  • started a topic Running Python Through the Command Line

    Running Python Through the Command Line

    When I try running my script using
    UE4Editor-Cmd.exe -run=pythonscript -script="c:\"
    I get the following error:

    I tried following the documentation here but had no luck:

    Has anyone had any success running their python script from the command line?
    Attached Files