[Gambas-user] I have an error [45] File or directory does not exist. Form1.?.0

Benoit Minisini gambas at ...1...
Fri Mar 28 00:14:04 CET 2008


On vendredi 28 mars 2008, skaggs wrote:
> NO I understand my project directory is read only.
>
> My program runs fine.
>
> If I make an ubuntu installation package.  It installs my application
> and runtime libraries.
>
> But to run my application the end user right now has to manually install
> the wwmkr directory with all of its subdirectories and data files.  Then
> the project executable wwmkr.gambas must be ran from inside of that
> directory.  Thats becuase the program is using application.path/themes
> or application.path/project to find it's needed files. Of course I could
> rewrite the program to use user.path&/"wwmkr" but I would still need to
> know how to get the package maker to install the directory and data
> files.  Or do I need to have that done as second step in the
> installation process.
>
> I am sorry if my explanation is confusing.
>
> JB SKaggs
>
> On Thu, 2008-03-27 at 23:50 +0100, Benoit Minisini wrote:
> > On jeudi 27 mars 2008, jbskaggs wrote:
> > > Okay I got the installation to install on my system.
> > >
> > > Here is the problem:
> > > my program has the following directory structure:
> > >
> > > ../wwmkr
> > > ../wwmkr/themes with subdirectoies
> > >
> > > ../wwmkr/project with subdirectories
> > >
> > > when it installs it has this directory under the src tar.
> > >
> > > But it is never installed as the working directory for the program.
> > >
> > > How do I get the installation package maker to create this directory
> > > and file structure with my project?
> > >
> > > My program uses the application.path a lot, which does not exist as
> > > installation did not create the folders.
> > >
> > > So if I manually create the directory and manually start the project
> > > from that directory rather than the menu it works.
> > >
> > > Please help!
> > >
> > > JB SKaggs

If you want to access the files located in the project directory, you must use 
relative paths: "themes/xxx" for accessing a file named "xxx" in the themes 
directory, for example. You must not use Application.Path &/ "themes/xxx", as 
these files does not exist anymore once the executable is made. They are in 
the executable file.

Regards,

-- 
Benoit Minisini




More information about the User mailing list