About 259,000 results
Open links in new tab
  1. Python: How to open a folder on Windows Explorer (Python 3.6.2, …

    Feb 12, 2018 · 29 If I store the path that i want to open in a string called finalpath which looks something like this: "./2.8 Movies/English/Die Hard Series" then how do i open this in Windows …

  2. Open File in Another Directory (Python) - Stack Overflow

    Sep 9, 2015 · I've always been sort of confused on the subject of directory traversal in Python, and have a situation I'm curious about: I have a file that I want to access in a directory …

  3. python - How to open every file in a folder - Stack Overflow

    217 I have a python script parse.py, which in the script open a file, say file1, and then do something maybe print out the total number of characters.

  4. Open an existing folder/directory using Python - Stack Overflow

    I'm trying to create a python program which has many buttons for various operations like opening camera , flash on and off , in rasberrypi.Now i'm trying to open a directory which contains all …

  5. python - Open explorer on a file - Stack Overflow

    In Python, how do I jump to a file in the Windows Explorer? I found a solution for jumping to folders: import subprocess subprocess.Popen('explorer "C:\\path\\of\\folder"') but I have no …

  6. How to open a Folder in Windows Explorer by Python script?

    Oct 17, 2020 · How to open a Folder in Windows Explorer by Python script? Asked 5 years, 1 month ago Modified 5 years, 1 month ago Viewed 8k times

  7. python - How to reliably open a file in the same directory as the ...

    101 On Python 3.4, the pathlib module was added, and the following code will reliably open a file in the same directory as the current script:

  8. Open file in a relative location in Python - Stack Overflow

    Aug 24, 2011 · Suppose my python code is executed a directory called main and the application needs to access main/2091/data.txt. how should I use open (location)? what should the …

  9. Browse files and subfolders in Python - Stack Overflow

    Apr 28, 2011 · This answer is based on the 3.1.1 version documentation of the Python Library. There is a good model example of this in action on page 228 of the Python 3.1.1 Library …

  10. python - Automatically creating directories with file output - Stack ...

    In Python 3.2+, using the APIs requested by the OP, you can elegantly do the following: