use __file__ eg:
def get_my_path():
"""
Return the path to wherever this script file is stored
"""
return os.path.dirname(__file__)
Bård
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---
