This post is related with
We can test it like this:
writing a main script named "MainTest.pys":
And the script AddAliases.py's content is :
When you first run the script, the mushclient met no error and display text "Test" on the screen.
Then we changed the line 5 of AddAliases.py to :
and save the file.
Now press the button "Reload Script", the mushclient will still display text "Test" but not "TestA" on the screen.
Before rebooting the MushClient, the changes made to the AddAliases.py will not take affect.
We can test it like this:
writing a main script named "MainTest.pys":
def OnWorldOpen():
pass
def OnWorldConnect():
pass
def OnWorldClose():
pass
def OnWorldDisconnect():
pass
def OnWorldGetFocus():
pass
def OnWorldLoseFocus():
pass
import sys
sys.path.append("C:\fy4")
import AddAliases
AddAliases.NoteTest(world)
world.note(str(AddAliases.AddSkAlias()))And the script AddAliases.py's content is :
def AddSkAlias():
return ["skillsAlias", "sk", "skills", 1, ""]
def NoteTest(world):
world.note("Test")
if __name__=="__main__":
print "AddAliases Test"
print AddSkAlias()
else:
print "AddAliases Imported"
print AddSkAlias()When you first run the script, the mushclient met no error and display text "Test" on the screen.
Then we changed the line 5 of AddAliases.py to :
world.note("TestA")and save the file.
Now press the button "Reload Script", the mushclient will still display text "Test" but not "TestA" on the screen.
Before rebooting the MushClient, the changes made to the AddAliases.py will not take affect.