Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to open an external file in python

import subprocess    

path_to_notepad = 'C:WindowsSystem32
otepad.exe'
path_to_file = 'C:UsersDesktophello.txt'

subprocess.call([path_to_notepad, path_to_file])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #open #external #file #python
ADD COMMENT
Topic
Name
6+9 =