I wrote a AddAliases.py file which like this:
Add I tried to import it in main script file like this:
But the MUSHClient cried :
Can somebody help me to correct it?Thanks.
def AddSkAlias():
world.AddAlias("skillsAlias","sk","skills",eEnbled,"")
if __name__!="__main__":
world.note("Moudle AddAliases Imported")
Add I tried to import it in main script file like this:
import sys
sys.path.append("c:\fy4") # add the path of AddAliases.py
import AddAliases
AddSkAlias()
But the MUSHClient cried :
Quote:
Traceback (most recent call last):
File "<Script Block >", line 404, in ?
AddSkAlias()
NameError: name 'AddSkAlias' is not defined
Line in error:
AddSkAlias()
Traceback (most recent call last):
File "<Script Block >", line 404, in ?
AddSkAlias()
NameError: name 'AddSkAlias' is not defined
Line in error:
AddSkAlias()
Can somebody help me to correct it?Thanks.