a guest Jul 17th, 2018 56 Never
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",
- if dialog.ShowModal() == wx.ID_OK:
- path = dialog.GetPaths()
- #######this is where i wanted to do something like this:
- #I wished cmd could simply cd to the variable, path
- os.system('cd path')
- subprocess.Popen('cmd.exe', cwd=path)
- path = 'C:\Program Files\Mozilla\'
- os.system('cd "%s"' %path)
RAW Paste Data