Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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
    1. Maxon Developers Forum
    2. Heinrich Löwe
    H
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Best 1
    • Controversial 0
    • Groups 0

    Heinrich Löwe

    @Heinrich Löwe

    1
    Reputation
    58
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Heinrich Löwe Unfollow Follow

    Best posts made by Heinrich Löwe

    • Content of PYTHONPATH not appended to sys.path

      Hi, this is my first post in the new forum. I'm exited 😉

      I noticed, that the content of the PYTHONPATH environment variable is not appended to the content of sys.path for the c4d python interpreter. Since we use a lot of site-modules in our company, this issue is rather annoying.

      For the time being I helped myself by updating sys.path during plugin initialization, but I rather would not.

      # extend sys.path whit content of PYTHONPATH
      python_path = os.environ['PYTHONPATH'].replace("\\", "/").split(';')
      for entry in python_path:
          if not entry in sys.path:
              sys.path.append(entry)
      

      Is there a way to tackle the problem in a more convenient way, like a command line parameter or an environment variable? Is this behavior intended or is it just overlooked during the R20 upgrade process?

      I looking forward to your answers,
      Cheers,
      Heinrich.

      posted in Cinema 4D SDK python windows r20
      H
      Heinrich Löwe

    Latest posts made by Heinrich Löwe

    • Content of PYTHONPATH not appended to sys.path

      Hi, this is my first post in the new forum. I'm exited 😉

      I noticed, that the content of the PYTHONPATH environment variable is not appended to the content of sys.path for the c4d python interpreter. Since we use a lot of site-modules in our company, this issue is rather annoying.

      For the time being I helped myself by updating sys.path during plugin initialization, but I rather would not.

      # extend sys.path whit content of PYTHONPATH
      python_path = os.environ['PYTHONPATH'].replace("\\", "/").split(';')
      for entry in python_path:
          if not entry in sys.path:
              sys.path.append(entry)
      

      Is there a way to tackle the problem in a more convenient way, like a command line parameter or an environment variable? Is this behavior intended or is it just overlooked during the R20 upgrade process?

      I looking forward to your answers,
      Cheers,
      Heinrich.

      posted in Cinema 4D SDK python windows r20
      H
      Heinrich Löwe