Re: [Rest2web-develop] Re: Enhancement suggestion to rest2web
Brought to you by:
mjfoord
From: V. <gae...@no...> - 2006-04-09 22:56:45
|
On Sun, Apr 09, 2006 at 11:51:25PM +0100, Michael Foord wrote: > > If you know a way of finding out the target directory or the root = of > >the target tree from either functions.py or embedded code than I can > >code a appropriate function. > You can find this using ``Processor.target``, which is kind of a hack -= =20 > but why I included access to the Processor object. Ha ! I should have investigator the processor object a bit more ( I had seen that it was in the the namespace) > What values would you like (they are very easy to add into the namespac= e) ? Well, you know as well as I do that it is hard to know in advance what a user might need. I think the root of the target tree would be enough. Do you confirm that os.getcwd will give me the root of the source tree or is this just a coincidence that it does on my tests. I'll write a function to copy file from the source tree to the target tree that can be included in functions.py . I'll just wait until tomorrow in order to have a clearer idea of what options/features might be wanted for such function. Suggestions welcomed. Ga=EBl |