[pyar] Filename con espacios en blanco

Facundo Batista facundobatista en gmail.com
Mar Mar 17 17:46:14 ART 2015


2015-03-17 17:36 GMT-03:00 Gabriel Acosta <acostadariogabriel en gmail.com>:

> dir_ = "C:/Users/Test/path con espacios"
> exe = "test.exe"
> program = "C:/Users/Test/system_pauser.exe %s" % os.par.join(dir_, exe)
> Popen(program, creationflags=CREATE_NEW_CONSOLE)

Probá haciendo:

  cmd = ["C:/Users/Test/system_pauser.exe", os.par.join(dir_, exe)]
  Popen(cmd, creationflags=CREATE_NEW_CONSOLE)

Slds.

-- 
.    Facundo

Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/
Twitter: @facundobatista


More information about the pyar mailing list