problems with opening files due to file's path
alexnbryan at gmail.com
Wed Jun 11 02:15:02 CEST 2008
I am using GUI, Tkinter to be exact. But regardless of how the path gets
there, it needs to opened correctly. The problem I am running into is that
the program receives a path of a file, either .wma or .mp3 and is supposed
to open it. I run into problems when there is either a ")" or a number next
to the backslash "\" in the file path. I am looking for a way to make it
work with a variable, I can make it work when I physically type it in, but
not with a variable that holds the path.
Mike Driscoll wrote:
> On Jun 10, 1:57 pm, Alexnb <alexnbr... at gmail.com> wrote:
>> That would work, but not for what I want. See the file could be anywhere
>> the user's system and so the entire path will be unique, and that didn't
>> work with a unique path. What is the subprocess module you are talking
> As Carsten pointed out, we don't really know what you're doing. Or at
> least, I don't. Why do you even want to do string substitution? How
> does the user navigate to the files that the user wants to open? Are
> you using a GUI or a command line interface?
> Anyway, Google is your friend. Searching for "python subprocess" gives
> you this:
View this message in context: http://www.nabble.com/problems-with-opening-files-due-to-file%27s-path-tp17759531p17767518.html
Sent from the Python - python-list mailing list archive at Nabble.com.
More information about the Python-list