Skip to content
murmot

Results for “python script runner tutorial site:discuss.python.org pdf”

  • discuss.python.org

    How to iterate through all the files in the directory

    Nov 15, 2022 · Right now I have to copy paste one file in the folder then rename it as input.pdf and then execute the script, then for new file, replace the input.pdf file with new file and execute the program and so on… Now I want to iterate through all the (.pdf) files in a folder and perform the task specified in a function without changing the name of the file and save the file with the same name but ...

  • discuss.python.org

    Pre-PEP: Locking a PEP 723 single-file script - Packaging...

    It will bundle a PEP-723 script and a lockfile[1] into a zipapp along with the script runner and a bootstrapping script[2]. The script runner will pick (or possibly install) an appropriate Python version to use to run the script, and is not restricted to the runtime that launched the zipapp.

  • discuss.python.org

    How to run an script remotely - Python Help - Discussions on ...

    Nov 11, 2021 · Hello, As an example, I have this code: import os os.system(‘calc.exe’) If I run it locally, it works (Pycharm and CMD). But I tried to run from an external tool, it does not work. Someone said that I need to run it as a SYSTEM in interactive mode with PSEXEC. He sent me this sentence: psexec -i -s calc.exe But when I run my script with that sentence in the ("") it does not work. Does ...

  • discuss.python.org

    Using multiprocessing to convert files to pdf - Python Help ...

    Jun 11, 2023 · Hi Python community, I have some experience with Python and don’t consider myself a complete beginner. However, this is my first time to use multiprocessing. I have watched two videos about using multiprocessing in Python. I have written a script to convert all xlsx files from one folder to pdf files and save them to other folder. Conversion process is done with soffice (libreoffice command ...

  • discuss.python.org

    Python Script Help - Exporting PDF Text and Images to a Word...

    The purpose of the code is to export the paragraphs in this PDF that contain an asterisk along with the associated photos directly below the paragraphs. The issue I am running into, is that it is exporting ALL the images on the page with the paragraphs.

  • discuss.python.org

    Automated background execution of a Python script upon system ...

    Dec 27, 2025 · I have developed a Python script employing the pyautogui module, which automatically refreshes the system every hour. I require a mechanism to execute this script in the background upon system startup, without invoking a terminal interface. Is this feasible? Please respond if anyone has any insight on this matter.

  • discuss.python.org

    Standardized shebang for PEP 723 script runner - Ideas ...

    Apr 9, 2025 · I have seen articles and discussions recently that recommend a shebang for scripts that use inline script metadata (PEP 723). They currently link directly to a particular script runner, often uv. This allows running the script directly, but only when that particular script runner is installed. For example: #!/usr/bin/env -S uv run --script Shebangs in scripts that hard code assumptions have a ...