07-11-2022 02:59 PM
Hello,
i tried out the python example of the python-webserver
and well if you see it works correclty. I can write values in the data layer. So when i looked in the mark down file there is a picture with the stylesheet.css but in my case he doesn't want to link the css file included in /www/stylesheet.css.
i looked further in the code and copied the html file in a notepad. Then i created a file folder to my desktop i linked the stylsheet to the notepad data like this:
When i execute the html file in notepad it puts following results:
I also changed some default values in the stylesheet.css to see if the linking is correct.
So when i build the snap for the ctrlx Core Device I only get the first picture without the stylsheet.css linking.
I got the python example webserver+datalayer from the sdk vers. 1.14.3.
best regards
UDK_developer
Solved! Go to Solution.
07-12-2022 08:31 AM
Hello UDK_developer,
I was able to reproduce your bug. Thank you for reporting it!
We will take a deeper look into this error and let you know if there are any news.
Best regards,
Nick
08-12-2022 11:44 AM - edited 08-12-2022 11:45 AM
Hello UDK_developer,
I got an update for you. We found a fix for this bug. It has something to do with how the parts of the snap are packed.
You can just add these lines to the snapcraft.yaml. So that the application will later find the css-file at "$SNAP/www".
...
parts:
...
www:
plugin: dump
source: ./www
organize:
'*': "www/"
...
This is going to be included in the next release of the SDK.
Best regards,
Nick