Ask coding questions

← Back to all posts
Override update package configuration
BruceLi2 (1)

I have a python app that requires packages that are usually stored in ~/.apt to install one of the modules. The thing is, I have a .replit file that will copy a .apt folder from the ~/not-a-desmos-rickroll folder into the main directory and then run the main file run = "cp -r ~/not-a-desmos-rickroll/.apt ~ && python3" , allowing the modules to be installed. The thing is, repl decides to update the python modules first, which will fail, since the .apt/ folder is not there. Does anyone know how to override this?

Answered by Coder100 (18089) [earned 5 cycles]
View Answer
BruceLi2 (1)

I already have a .replit. The thing is, reply installs packages before running the .replit. That's what I was asking [email protected]

Coder100 (18089)

that's what I mean
it has an option called ignoredPackages
please read my link @BruceLi2

BruceLi2 (1)

oh, my bad! thanks man :) I think I can also use the "onboot" to have it copy it, right? @Coder100

Coder100 (18089)

@BruceLi2 yeah, onboot is for behavior when the repl first loads