Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def OnAbout3(self, event):
- """
- Browse for file
- """
- wildcard = "Select File (*.pvt)|*.pvt"
- dialog = wx.FileDialog(None, "Choose a file",
- wildcard=wildcard,
- style=wx.OPEN)
- if dialog.ShowModal() == wx.ID_OK:
- path = dialog.GetPaths()
- #######this is where i wanted to do something like this:
- subprocess.Popen("cmd.exe")
- #I wished cmd could simply cd to the variable, path
- os.system('cd path')
- dialog.Destroy()
- subprocess.Popen('cmd.exe', cwd=path)
- path = 'C:\Program Files\Mozilla\'
- os.system('cd "%s"' %path)
Add Comment
Please, Sign In to add comment