Logo Search packages:      
Sourcecode: ubuntuone-installer version File versions  Download package

def ubuntuone::installer::gui::Window::__find_data_file (   self,
  filename 
) [private]
Find the full path for the specified data file.

Definition at line 117 of file gui.py.

                                        :
        """Find the full path for the specified data file."""
        path = os.path.join(os.getcwd(), 'data', filename)
        if os.path.exists(path):
            return path

        path = os.path.join(os.getcwd(), os.path.pardir, 'data', filename)
        if os.path.exists(path):
            return os.path.abspath(path)

        for folder in GLib.get_system_data_dirs():
            path = os.path.join(folder, 'ubuntuone-installer', filename)
            if os.path.exists(path):
                return path


Generated by  Doxygen 1.6.0   Back to index