C++/Python interfacing

Absolute\relative paths

Consider next fileers, the average number of characters per line is less than 2. Please cs layout:

boost/
  date_time/
    ptime.hpp
    time_duration.hpp
    date_time.hpp

date_time.hpp is the main header file, which should be parsed.

Py++ does not handle relative paths, as input, well. It tries, but there are uses cases it fails. In these cases it generates empty module - nothing is exposed:

mb = module_builder( [ 'date_time/date_time.hpp' ], ... )
mb.split_module( ... )

I recommend you to use absolute paths instead of relative ones:

import os
mb = module_builder( [ os.path.abspath('date_time/date_time.hpp') ], ... )
mb.split_module( ... )

and Py++ will expose all declarations found in the date_time.hpp file and other files from the same directory.



Valid HTML 4.01 Transitional Valid CSS! SourceForge.net Logo