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
-~----------~----~----~----~------~----~------~--~---

  • ... Achayan
    • ... pierrotb
      • ... kurian os ™ ®കോപ്പിയടിച്ചാല്©ഗോതമ്പുണ്ട!
        • ... pierrotb
          • ... kurian os ™ ®കോപ്പിയടിച്ചാല്©ഗോതമ്പുണ്ട!
            • ... pierrotb
              • ... Chad Dombrova
                • ... kurian os ™ ®കോപ്പിയടിച്ചാല്©ഗോതമ്പുണ്ട!
                • ... jason . osipa
    • ... Bård Henriksen
      • ... Paul Molodowitch
        • ... Chris G
          • ... Paul Molodowitch
            • ... kurian os ™ ®കോപ്പിയടിച്ചാല്©ഗോതമ്പുണ്ട!

Reply via email to