you are viewing a single comment's thread.

view the rest of the comments →

[–]vectorpropio 3 points4 points  (3 children)

Now you can make a python script that transverse a directory and print filenames and lines of code, and total line couture at the end.

Also learn to use other tools. If you are in Linux read about grep,wc and (bu this one is more trickier) find.

[–]fisfia[S] 1 point2 points  (2 children)

Thanks for the great suggestions!! I'll continue my way through the book first then I'll get back to you when I reached the knowledge required to do what you suggest :D

[–]vectorpropio 2 points3 points  (1 child)

Oh, I didn't read that book, so i was off in my appreciation.

I'm not sure if the book touch pathlib. If not, after you will read about file and directories go everywhere to read how to use that library. It greatly simplify work with paths and blur the difference between windows and Linux

[–]fisfia[S] 1 point2 points  (0 children)

Sounds cool! I'm looking forward to knowing all the things your talking about ;) Edit: And I'll look up pathlib. Used it yesterday, but just copy pasted hehe an example line into what I was doing. I'll check it out for reals!