About 3,570,000 results
Open links in new tab
  1. How do I find out my PYTHONPATH using Python? - Stack Overflow

    Sep 28, 2009 · How do I find out which directories are listed in my system’s PYTHONPATH variable, from within a Python script (or the interactive shell)?

  2. python - How do you correctly set the PYTHONPATH ... - Stack …

    Feb 29, 2012 · 2 PYTHONPATH = If this variable exists in your environment, Python will add it to the normal search path for modules when you use any import statement; you normally do not …

  3. How should I write a Windows path in a Python string literal?

    Apr 9, 2023 · Path takes a path-like string and adjusts everything for the current OS, either Windows or Linux. For example, on Linux it would convert all backslashes to forward slashes, …

  4. python - What exactly should be set in PYTHONPATH? - Stack …

    It is always appended to PYTHONPATH. An additional directory will be inserted in the search path in front of PYTHONPATH as described above under Interface options. The search path can be …

  5. How can I find where Python is installed on Windows?

    Mar 15, 2009 · I want to find out my Python installation path on Windows. For example: C:\\Python25 How can I find where Python is installed?

  6. Adding Python to PATH on Windows - Stack Overflow

    I've been trying to add the Python path to the command line on Windows, yet no matter the method I try, nothing seems to work. I've used the set command, I've tried adding it through …

  7. How to get an absolute file path in Python - Stack Overflow

    Sep 9, 2008 · python path relative-path absolute-path edited Jul 5, 2022 at 15:51 Marc Compere 343 6 20

  8. How to correctly set PYTHONPATH for Visual Studio Code

    Dec 6, 2018 · I have a situation that I believe is relatively common. I want a script to import a module from another directory. My python project is laid out as follows: ~/project/ | |---modules/ …

  9. Relative paths in Python - Stack Overflow

    May 28, 2009 · So when python script shall executed the current working directory (use os.getcwd () to get the path) As my relative path is relative to input_file_list.txt, that is "D:\Copyofconc", i …

  10. How to move to one folder back in python - Stack Overflow

    Sep 5, 2012 · Actually need to go some path and execute some command and below is the code code: import os present_working_directory = '/home/Desktop/folder' presently i am in folder if …