On 04/24/12 18:29, lkcl luke wrote:
> rhhhmm.... i knew there was a reason why i was reluctant about the
> getImageBaseURL thing (pygwt.py). ok, a workaround is to just go "if
> not getModuleBaseURL.startswith("http://") or https:// or better yet,
> if it startswith "file://" then return pyjdinitpth+blahblah.
> for now however please just hack Tree.py and other uses of
> pygwt.getImageBaseUrl to pass in images=True ok? ... or think of a
> modification or other solution :) l.
May be just return getModuleBaseURL(), like this:
----
diff --git a/library/pygwt.py b/library/pygwt.py
index 1c3477c..650012a 100644
--- a/library/pygwt.py
+++ b/library/pygwt.py
@@ -42,7 +42,5 @@ def getImageBaseURL(images=False):
return getModuleBaseURL() + images + '/'
else:
return getModuleBaseURL() + "images/"
- elif pyjd.is_desktop:
- return pyjd.pyjdinitpth + "/library/pyjamas/ui/public/"
else:
return getModuleBaseURL()
---
With this patch all is working as before.
Otherwise, it is bad when public/ directory structure must be different
for pyjd and pyjs.
Seva