~ubuntu-branches/debian/experimental/nuitka/experimental

« back to all changes in this revision

Viewing changes to nuitka/build/static_src/MetaPathBasedLoader.cpp

  • Committer: Package Import Robot
  • Author(s): Kay Hayen
  • Date: 2015-04-06 17:20:44 UTC
  • mfrom: (1.1.37)
  • Revision ID: package-import@ubuntu.com-20150406172044-grhy9sk7g0whu2ag
Tags: 0.5.12+ds-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
410
410
            PySys_WriteStderr( "Loaded %s\n", name );
411
411
        }
412
412
 
 
413
#ifdef _NUITKA_STANDALONE
 
414
        // Execute any "onLoad" code produced for
 
415
        char onLoadModuleName[4096];
 
416
        strcpy( onLoadModuleName, name );
 
417
        strcat( onLoadModuleName, "-onLoad");
 
418
 
 
419
        struct Nuitka_MetaPathBasedLoaderEntry *onload_entry = find_entry( onLoadModuleName );
 
420
 
 
421
        if ( onload_entry != NULL )
 
422
        {
 
423
            if ( Py_VerboseFlag )
 
424
            {
 
425
                PySys_WriteStderr( "Loading %s\n", onLoadModuleName );
 
426
            }
 
427
 
 
428
            onload_entry->python_initfunc();
 
429
        }
 
430
#endif
 
431
 
413
432
        return LOOKUP_SUBSCRIPT( PyImport_GetModuleDict(), module_name );
414
433
    }
415
434