Posts: 4,647
Threads: 1,494
Joined: Sep 2016
i have a script that is version agnostic. it runs correctly under python2 and python3. but i want to make it be an executable #! script that will run under a system that has python2 only (named python there) and will run under a system that has python3 only after the script is downloaded (from the same online copy) and made executable, at least on Linux if not also Windows and BSD.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,647
Threads: 1,494
Joined: Sep 2016
Apr-20-2018, 12:18 AM
(This post was last modified: Apr-20-2018, 12:21 AM by Skaperen.)
i don't always have the option to install Python3 on these systems even if its sysadmin does. i'm trying make code that just works by downloading a file, not installing a "package".
i would like to see Python3 totally take over. waiting for Python2 EOL. soon!
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,647
Threads: 1,494
Joined: Sep 2016
Apr-23-2018, 06:25 AM
(This post was last modified: Apr-23-2018, 06:30 AM by Skaperen.)
i'm talking about simple scripts with no dependencies, otherwise i would be doing package installs.
and besides, that python environment thing never worked. i think i had a different expectation of it than its creators intended. i was looking for something to let me avoid doing an install of some other version of Python (outside of the environment). a VM would still be the way to do it.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.