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
    • Recent
    • Tags
    • Users
    • Admin
    • Login

    Strange behavior Windows 10

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 232 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

      On 10/02/2016 at 23:41, xxxxxxxx wrote:

      I have trouble reading a file in my c++plugin on Windows 10.

      To test I created a python script to open and read the license file.
      In windows 8.1 it is ok.
      In windows 10 it gives me a "IOError: No such file or directory: d:/license.lic."

      It seems as if windows 10 does not recognize the file as a text file.
      We set the protection for the file and the maxon directory on windows 10 fully open.

      What could be wrong?

      import c4d,os
      from c4d import gui
        
      def main() :
        
          licFile = "d:/license.lic"
          fi = open(licFile)
          print fi.readlines()
          fi.close()
          
      if __name__=='__main__':
          main()
      

      -Piim

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

        On 11/02/2016 at 01:02, xxxxxxxx wrote:

        Sorry, my mistake.
        The user did not show the extensions, so he renamed the files to license.lic.lic.
        So two times .lic.

        But now it is solved!

        -Pim

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