Call and Run Another Script in Any Different Directory/Path from a Script - Python for Integrated Circuits - - An Online Book - |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Python for Integrated Circuits http://www.globalsino.com/ICs/ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Chapter/Index: Introduction | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | Appendix | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
================================================================================= Send a variable or a updated variable back to a script in a child folder, and send a variable or a updated variable back to a script in its parent folder. Code in Parent folder: ============================================ Import a Python class that is in a directory above and then run that script. Code in the folder above. AAA: ============================================ Run scripts one or two directories above . AAA:
Output from executing the last Code above: ============================================ Import a Python class that is in a directory above and then run that script. Code in the folder above. AAA: ============================================ Import any script that is in the directory above, brother directory, child directory, then run a script there. With those scripts, any are callable and executable. AAA:
============================================ Import a Python class that is in a directory above and then run that script. Code in the subfolder and Code in the parent folder: ============================================ Call and run another script in a different directory/path from a script. Test scripts:
============================================
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
================================================================================= | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||