Organise your Flowcode projects

Tips, Tricks and methods for programming, learn ways of making your programming life easier, and share your knowledge with others.
Post Reply
mnfisher
Valued Contributor
Posts: 1787
http://meble-kuchenne.info.pl
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 151 times
Been thanked: 846 times

Organise your Flowcode projects

Post by mnfisher »

Another new year's resolution - organise my Flowcode (and other) projects/life generally better.

I was looking for a particular project - and memory not being what it used to be - struggled to find the version I was looking for....
Many of my projects just get thrown in the same directory - and if I'm feeling sensible have _esp32 or similar added to the name. 'Everything' should be in everyone's toolkit (from voidtools.com) (thanks to Martin for that suggestion). I often have multiple targets of the same code - and I guess I would do better to use git a little more extensively with branches for each target!

So - a small Python script - this looks through and copies all Flowcode projects to for example avr/attiny/attiny88/project - creating new directories as required and using the target attribute of the Flowcode file.
It also shifts all the other files (backup, .c, .h etc - and in the case of esp files the build directory - though this might differ for FC default scripts). As is the was with modern programming languages - there are many (many) files :-) - one drawback is that esp32 directories don't play nicely - so you need to do a fullclean (or delete the 'build' sub-directory) - so I might need a second batch file that goes through and cleans and rebuilds all my esp32 projects!

It doesn't move fcsx files - though could. Arduino files - the directory is 'ard' (based on the FC - target type) - though 'arduino' might be better?

So - backup everything first (of course!) - then do python organise.py (if you have the script in the directory you want to organise) or python organise.py -s src_dir -o output_dir - and in seconds your life will be a more organised and better place.

Martin
Attachments
organise.zip
(1.88 KiB) Downloaded 10 times

WingNut
Posts: 276
Joined: Tue Jul 13, 2021 1:53 pm
Has thanked: 47 times
Been thanked: 37 times

Re: Organise your Flowcode projects

Post by WingNut »

My nemisis. What was that file called after i added an option? And then onedrive to complicate matters - bleeehhh
'Everything' is a really handy tool, much better than windows filemanager or whatever its called now, but I was thrown a little at first by void.com - strange website. It voidtools.com

mnfisher
Valued Contributor
Posts: 1787
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 151 times
Been thanked: 846 times

Re: Organise your Flowcode projects

Post by mnfisher »

Thanks - I did mention the memory was getting less reliable with age!!!

Post Reply