Hi, John,
Your comments below are all reasonable. However, I would like to point
out that the purpose of my example was to provide a demonstration of an
algorithm, not an industrial-grade solution to every aspect of the
original poster's problem. I am confident the original poster can deal
w
On Sep 19, 4:51 am, "Michael J. Fromberger"
<[EMAIL PROTECTED]> wrote:
> .
> .# This expression matches "header" lines, defining a new section.
> .new_re = re.compile(r'\[([\w ]+)\]\s*$')
Directory names can contain more different characters than those which
match [\w ] ... and which ones
In article <[EMAIL PROTECTED]>,
"Martin M." <[EMAIL PROTECTED]> wrote:
> Hi everybody,
>
> Some of my colleagues want me to write a script for easy folder and
> subfolder creation on the Mac.
>
> The script is supposed to scan a text file containing directory trees
> in the following format:
>
Since you are going to need to do a dialog, I would use wxWindows tree
control. It already knows how to do what you describe. Then you can
just walk all the branches and create the folders.
-Larry
Martin M. wrote:
> Hi everybody,
>
> Some of my colleagues want me to write a script for easy fol
On 2007-09-16, Martin M. <[EMAIL PROTECTED]> wrote:
> Hi everybody,
>
> Some of my colleagues want me to write a script for easy folder and
> subfolder creation on the Mac.
>
> The script is supposed to scan a text file containing directory trees
> in the following format:
>
> [New client]
>|-Invoi
On Apr 3, 5:13 am, [EMAIL PROTECTED] wrote:
> Hi,
>
> I have just started learning python.I need to parse an XML file
> and present the contents in a particular format.The format is called
> as "ini" file.I have written some code.A section of the format needs
> the data to be present in format
[EMAIL PROTECTED] wrote:
> Hi,
>
> I have just started learning python.I need to parse an XML file
> and present the contents in a particular format.The format is called
> as "ini" file.I have written some code.A section of the format needs
> the data to be present in format as given below:
>
In <[EMAIL PROTECTED]>, saif.shakeel
wrote:
> I have just started learning python.I need to parse an XML file
> and present the contents in a particular format.The format is called
> as "ini" file.I have written some code.A section of the format needs
> the data to be present in format as giv
> I have just started learning python.I need to parse an XML file
> and present the contents in a particular format.The format is called
> as "ini" file.I have written some code.A section of the format needs
> the data to be present in format as given below:
>
> [Services]
> supported=0x10,0x1