blackenergy89 / keimpx

Automatically exported from code.google.com/p/keimpx
0 stars 0 forks source link

Spaces in file names #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Windows has a lot of directories with spaces in them: suppport quoting like 
"Program Files"

Original issue reported on code.google.com by bernardo.damele on 10 Feb 2010 at 10:30

GoogleCodeExporter commented 8 years ago
Hi Bernardo,

You might remember sometime ago, you asked me to consider doing a contribution 
to the project and I said I would try to provide some code. Here is my first 
contribution. Since it is very small here is the new code

# add at the beginning
import shlex

# In eval(), replace the following line
#     l = string.split(cmd, ' ')
# with

for arg in shlex.split(cmd):
    l.append(arg)

That's it! Now keimpx supports folders and files with spaces.

Original comment by ekse...@gmail.com on 12 Jul 2010 at 11:07

GoogleCodeExporter commented 8 years ago
I forgot a line in the code, here is the corrected code :

l = []
for arg in shlex.split(cmd):
    l.append(arg)

Original comment by ekse...@gmail.com on 14 Jul 2010 at 4:12

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r71.

Original comment by bernardo.damele on 22 Jan 2012 at 12:03