the webbrowser open(function can launch web browser from your program to specific websiterather than opening the browser application with subprocess popen(see "projectmapit py with the webbrowser moduleon page for more details running other python scripts you can launch python script from python just like any other application simply pass the python exe executable to popen(and the filename of the py script you want to run as its argument for examplethe following would run the hello py script from subprocess popen([' :\\users\\\\appdata\\local\\programs\python\\python \\python exe''hello py']pass popen( list containing string of the python executable' path and string of the script' filename if the script you're launching needs command line argumentsadd them to the list after the script' filename the location of the python executable on windows is :\users\<your username>\appdata\local\programs\python\python \python exe on macosit is /library/frameworks/python framework/versions/ /bin/python on linuxit is /usr/bin/python unlike importing the python program as modulewhen your python program launches another python programthe two are run in separate processes and will not be able to share each other' variables opening files with default applications double-clicking txt file on your computer will automatically launch the application associated with the txt file extension your computer will have several of these file extension associations set up already python can also open files this way with popen(each operating system has program that performs the equivalent of double-clicking document file to open it on windowsthis is the start program on macosthis is the open program on ubuntu linuxthis is the see program enter the following into the interactive shellpassing 'start''open'or 'seeto popen(depending on your systemfileobj open('hello txt'' 'fileobj write('helloworld!' fileobj close(import subprocess subprocess popen(['start''hello txt']shell=truekeeping timescheduling tasksand launching programs