autorun doesn't comply with python3

Post in this forum for problems at boot time, if there was no problem for burning the disc. For example can't find the CD, or strange errors when you press enter at the very first prompt.
Posts: 1131
Joined: 07 Apr 2010, 16:19

Re: autorun doesn't comply with python3

Post by gernot » 30 May 2017, 16:21

we should enable binary files in copyfilefct_basic.
Bad coded/binary files are copied this way.

Code: Select all

def copyfilefct_basic(src, dest):
        if os.path.isfile(src):
                dstfile=open(dest, 'wb')
                os.chmod(dest, 755)
                return 0
                return -1

I dont know if it makes sense trying to execute files with binary content. With this change autorun continue with sript execution in that case.

Code: Select all

         # ---- execute the autorun scripts found ----
         for curfile in autorunfiles:
+                try:
+                         processdostextfiles(curfile)
+                except:
+                         pass

Post Reply