Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You don't understand the concept of people running software written by other people?

One of my biggest problems with python happens to be caused by the fact that a lot of freecad is written in python, and python3 writes _pycache_ directories everywhere a script executes (which means everywhere, including all over the inside of all my git repos, so I have to add _pycache_ to all the .gitignore ) and the env variable that is supposed to disable that STUPID behavior has no effect because freecad is an appimage and my env variable is not propagating to the environment set up by freecad for itself.

That is me "trying to install other people's scripts" the other people's script is just a little old thing called FreeCAD, no big.





> That is me "trying to install other people's scripts" the other people's script is just a little old thing called FreeCAD, no big.

What I don't understand is why you call it a "script".

> and python3 writes _pycache_ directories everywhere a script executes (which means everywhere, including all over the inside of all my git repos, so I have to add _pycache_ to all the .gitignore )

You're expected to do that anyway; it's part of the standard "Python project" .gitignore files offered by many sources (including GitHub).

But you mean that the repo contains plugins that FreeCAD will import? Because otherwise I can't fathom why it's executing .py files that are within your repo.

Anyway, this seems like a very tangential rant. And this is essentially the same thing as Java producing .class files; I can't say I run into a lot of people who are this bothered by it.


This is 99% of the complaints in these threads. "I had this very specific problem and I refuse to handle it by using best practise, and I have not used python to anything else, but I have very strong opinions".

I've had many problems with many python scripts over the many years. Problems that I did not have with other scripts from other ecosystems. And that's just sticking to scripts and not languages in general.

A random sh script from 40 years ago usually works or works with only the tiniest adjustment on any current system of any unix-like.

A random py script from 6 months ago has a good chance of not working even on the same system let alone another system of the same platform, let alone another system of a different platform.

Now please next by all means assume that I probably am only complaining about the 2->3 trasition and nothing that actually applies since 15 years ago.


>A random py script from 6 months ago has a good chance of not working even on the same system

This just isn't true and nothing I have experienced over many years of python programming.

Maybe your problems with python scripts (is it scripts or program?) is an issue with the code?


I wouldn't use "script" to describe FreeCAD. Regardless, this problem is much more with FreeCAD than with Python.

> I have to add _pycache_ to all the .gitignore

I just add that, once, in my global gitignore.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: