About 50 results
Open links in new tab
  1. python - Find the current directory and file's directory - Stack Overflow

    How do I determine: the current directory (where I was in the shell when I ran the Python script), and where the Python file I am executing is?

  2. What is the best library in python to deal with excel files?

    PyXLL is a professional library that can handle almost everything a user wants in Excel with Python. One of the famous companies working on Python distributions supports the library. Unfortunately, …

  3. python - How do I list all files of a directory? - Stack Overflow

    Jul 9, 2010 · How can I list all files of a directory in Python and add them to a list?

  4. python - List files ONLY in the current directory - Stack Overflow

    Aug 15, 2012 · In Python, I only want to list all the files in the current directory ONLY. I do not want files listed from any sub directory or parent. There do seem to be similar solutions out there, but they d...

  5. Working with multiple code files and folders in Python

    15 I am new to Python and I haven't figured out a simple way of separating code in multiple code files and folders. What I do today is: for each folder I create an __init__.py file. Sometimes it's empty. I …

  6. Python can't find module in the same folder - Stack Overflow

    Jul 13, 2014 · My python somehow can't find any modules in the same directory. What am I doing wrong? (python2.7) So I have one directory '2014_07_13_test', with two files in it: test.py hello.py …

  7. Formatter black is not working on my VSCode...but why?

    Dec 2, 2020 · That said, these kind of problems usually are about using a python interpreter where black isn't installed. I recommend the use of virtual environments, but first check your python interpreter on …

  8. How to set the working directory for debugging a Python program in …

    How do I execute a Python file with the debugger and specify the working directory for the run?

  9. python: Change the scripts working directory to the script's own ...

    The problem is that crontab runs the script from a different working directory, so trying to open ./log/bar.log fails. Is there a nice way to tell the script to change the working directory to the script's …

  10. Python in VSCode: Set working directory to python file's path everytime

    Jun 26, 2019 · The second setting solves this, which allows you to set the working directory to the python file's path even when you choose to run code outside of the terminal.