Skip to main content

All Questions

Tagged with
-1 votes
0 answers
50 views

Python for i loop slowing down gradually over time

this is the entire script and its running on its own. This script cycles trough thousands of .txt files and just prints their contents. Though it quickly starts to slow down. First they print at a ...
Max Taskila's user avatar
-1 votes
3 answers
61 views

Detecting duplicate files based on binary content

So here's my current situation I have a folder with textures I extracted from a game, but they weren't exactly stored efficiently so now I have a giant amount of textures of which some are unique but ...
eman_not_ava's user avatar
0 votes
1 answer
54 views

How should I go about importing one module from another module, where the first module itself is importing a different module?

I have 3 relevant files here, in this directory set up: src/operator_precedence_high_roller_bot/ parsing/ command_parser.py high_roller.py tests/test_high_roller/ ...
Jade Roberts's user avatar
2 votes
2 answers
189 views

How do I delete only older files from Recycle Bin in Python?

I am trying to make a program that deletes files that were deleted a certain number of days ago from the recycling bin. I know there is a simple way to empty the recycling bin with winshell, but I ...
Brianna Drew's user avatar
-1 votes
1 answer
470 views

Telegram bot cannot detect any file that i upload

So i use AI to write me a telegram bot in python, it run but no function. I try to make a file manager that the bot can know what file i uploaded and do something similar like google drive stuff. when ...
kiwi 52's user avatar
  • 11
1 vote
1 answer
106 views

How do I restrict files (SQLite3 DB, etc.) from being deleted until the Python program is running?

I am working on a small python3 project which is a TKinter GUI program, how I can restrict users from deleting the associated files like sqlite3 DB, templates, html etc. until the python script is ...
Priyanshu's user avatar
  • 127
0 votes
1 answer
150 views

file manager using "touch (filename)"

How can I write a file manager using "touch (filename)" in Python? In the code I wrote, I need to do 2 operations to create a file. I need to create the file by typing " touch(example....
Musa's user avatar
  • 1
0 votes
1 answer
137 views

How to iterate into most recent path given a list of both paths and .txt files?

I have an interesting problem that has kind of been scratching my brain. I am returning a list of both Windows Paths and .txt files. I would like my program to first check if the most recent file (...
forreno's user avatar
  • 51
2 votes
2 answers
25k views

"SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape" . (File management bug)

So I'm making a program in Python that goes through all of your files in the download folder but when I run it, it says (SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in ...
axelrothing's user avatar
0 votes
0 answers
25 views

Move multiple files with certain naming pattern from multiple folders using python

I have folders like this in each folder, it contains file like this : i want to move every file with the name "Indeks-Standar-Pencemar-Udara-di-SPKU-Bulan*" in each folder to one ...
Diaz Jubairy's user avatar
0 votes
1 answer
658 views

Faster way to modify a few values in large Excel files

The problem: I have around 20 large Excel files with multiple sheets (over 50,000 values in each), and I have a list of about 500 entires that I'd like to modify, for example: | Excel file | ...
Daniel P's user avatar
  • 165
0 votes
1 answer
451 views

How to get the retrieve next line in Python whe reading from text file

I have a text file that resembles like this which is read from a server: Jo's Deli Express Potatoes 30 Fish 20 Chicken Meat 15 Margo's Grocery Beans 20 Carrots 15 Apples 30 The two shops are ...
Jeff's user avatar
  • 355
1 vote
2 answers
2k views

Python Video Download to client's browser directly

I came across this Pytube library to download videos from YouTube, Now the video gets downloaded to the local system that runs the script but what I want to do is let user click a HTML button on a web ...
Siddesh's user avatar
  • 199
1 vote
0 answers
152 views

Python - Change and update the same header files from two different projects

I am performing data analysis. I want to segment the steps of data analysis into different projects, as the analysis will be performed in the same order, but not usually all at the same time. There is ...
Caroline's user avatar
0 votes
0 answers
224 views

Cross platform Python file handleing

I have three python file and two text files file in respective folders. A.py in folder A, which is the main file B.py and b_results.txt in folder B C.py and c_results.txt in folder C Intentions: ...
ultrox's user avatar
  • 1

15 30 50 per page
1
2 3 4 5