Several people have asked me how did I do "Bad Python!!" (https://youtu.be/ZuBJVZWrRuk ). I guess I should write an article about it. Yay or nay?
-
-
Replying to @s7age
I can tell you why system("export...") doesn't work... :P
1 reply 0 retweets 0 likes -
Replying to @marcan42
That would be cool because I didn't research due to last hour lack of time.
1 reply 0 retweets 0 likes -
Replying to @s7age
Because it only affects the environment of the subshell, which does nothing else and exits. Try os.environ["foo"]="bar".
2 replies 0 retweets 1 like -
Alternatively you could combine all the system(...) calls into one with ';', that would work. Or just use a shell script?
1 reply 0 retweets 0 likes -
Replying to @marcan42
Yup I ended up writing a little .sh. Wasn't it packed? #!/bin/bash export SDL_FBDEV=/dev/fb1 xz -d -k bp.py.xz python bp.py
1 reply 1 retweet 0 likes -
Replying to @s7age
I was looking at the YouTube video. For bonus points embed the lzma into the shell script. I'm boarding a plane now but...
2 replies 0 retweets 0 likes
See the first $(TARGET) of https://github.com/marcan/crinklux/blob/master/Makefile … and 'hdr' for one possible way.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.