Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    GeGetPluginPath does not return correct path

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 312 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 20/10/2011 at 02:05, xxxxxxxx wrote:

      I've been trying to import a python file that sits in the same folder as the plugin without success. It appears that GeGetPluginPath() does not return the path to the plugin, but the path to the Python module \resource\modules\python. I'm pretty sure that's not how it should work? (this is on 13029 btw)

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 20/10/2011 at 03:41, xxxxxxxx wrote:

        For the path of Python plugins please use __file__ and os.path members to split like

        folder,fname=os.path.split(__file__)

        1 Reply Last reply Reply Quote 0
        • First post
          Last post