extra_flags += ["no_site"] if active: my_print("Consider output of recursively compiled program:", filename) # First compare so we know the program behaves identical. compareWithCPython( path=filename, extra_flags=extra_flags, # Do not expect PySide to work yet, because it has that bug still # where it won't call compiled functions as slots. search_mode=search_mode and not filename == "PySideUsing.py", needs_2to3=False) # Second use strace on the result. loaded_filenames = getRuntimeTraceOfLoadedFiles( path=os.path.join(filename[:-3] + ".dist", filename[:-3] + ".exe")) current_dir = os.path.normpath(os.getcwd()) current_dir = os.path.normcase(current_dir) illegal_access = False for loaded_filename in loaded_filenames: loaded_filename = os.path.normpath(loaded_filename) loaded_filename = os.path.normcase(loaded_filename) if loaded_filename.startswith(current_dir): continue if loaded_filename.startswith(os.path.abspath(current_dir)): continue
my_print("Consider output of recursively compiled program:", filename) # First compare so we know the program behaves identical. compareWithCPython( path = filename, extra_flags = extra_flags, # Do not expect PySide to work yet, because it has that bug still # where it won't call compiled functions as slots. search_mode = search_mode and not filename == "PySideUsing.py", needs_2to3 = False ) # Second use strace on the result. loaded_filenames = getRuntimeTraceOfLoadedFiles( path = os.path.join( filename[:-3] + ".dist", filename[:-3] + ".exe" ) ) current_dir = os.path.normpath(os.getcwd()) current_dir = os.path.normcase(current_dir) illegal_access = False for loaded_filename in loaded_filenames: loaded_filename = os.path.normpath(loaded_filename) loaded_filename = os.path.normcase(loaded_filename) if loaded_filename.startswith(current_dir): continue