[AG-TECH] Make a agpkg3 with subfolders?

Christoph Willing c.willing at uq.edu.au
Mon Aug 30 08:59:49 CDT 2010


On 30/08/2010, at 11:30 PM, Jesus Cea Oliva wrote:

> Hi Christoph, I don't understand very well what do you mean.
>
> I have problems when I tried unpacking the Shared Application with  
> the command:
>
> sudo agpm.py -s -p SharedApp.agpkg
>
> because show me messages errors about there are files that don't  
> exists (the image files).
>

Firstly, can you confirm that the correct files & directory structure  
exists in the package before you install it? You can test that with:
     unzip -t SharedApp.agpkg
(which just lists the contents of the agpkg archive).


chris


> My first .app file was:
>
> [application]
>
> name = MySharedApp
> mimetype = application/x-ag-my-shared-app
> extension = mysharedapp
> files = MySharedApp.py MySharedApp_GUI.py ./images/*
>
>
> [commands]
> Open = %(python)s FicheroPrincipal.py -a %(appUrl)s -v %(venueUrl)s
>
>
> but it doesn't work. Then, I tried this:
>
> [application]
>
> name = MySharedApp
> mimetype = application/x-ag-my-shared-app
> extension = mysharedapp
> files = MySharedApp.py MySharedApp_GUI.py ./images/icon1.png ./ 
> images/icon2.png ...
>
>
> [commands]
> Open = %(python)s FicheroPrincipal.py -a %(appUrl)s -v %(venueUrl)s
>
>
> but, it doen't work too :S.
>
>
> Regards again! ;)
>
> El dia 30 ago 2010 14:55, Christoph Willing <c.willing at uq.edu.au>  
> escribió:
> On 30/08/2010, at 9:19 PM, Jesus Cea Oliva wrote:
>
> Hi list.
>
> First all, I hope you had a good holiday ^^. Well, I've developed a  
> Shared Application (that soon, I would like to shared with yours),   
> and it has a subfolder, called 'images', that contains several icons  
> from the app.
>
> When I created the .app file, on section 'files', I tried putting  
> relatives paths to references this images (./images/icon1.png,  
> etc),  but it didn't work.
>
> Is it possible create agpkg3 files that contains subfolders with  
> other files?
>
> Just a guess - you probably have to reference the file in a  
> subdirectory with something like:
> icon1 = os.path.join(os.getcwd(), "images", "incon1.png")
>
> Then do something with icon1
>
>
> chris
>
>
> Christoph Willing +61 7 3365 8316
> QCIF Access Grid Manager
> University of Queensland
>
>

Christoph Willing                       +61 7 3365 8316
QCIF Access Grid Manager
University of Queensland



More information about the ag-tech mailing list