Will it continue the code after it runs? Or will it stop at that line until the script is executed?
Using subprocess.call is the easiest way. It will not return until the executable program terminates. Look at the other methods of the subprocess module if you need different behavior.
import os os.system('./script.sh')
python script will not stop until sh is completed
os.system subprocess.Popen subprocess.call, , shell=True. . Python script , .
os.system
subprocess.Popen
subprocess.call
shell=True
Source: https://habr.com/ru/post/1788436/More articles:How can I override the local module in Magento? - magentojQuery - application code against creating a plugin - javascriptContinue; used to skip many loops - c #Π‘ΠΎΠ·Π΄Π°Π½ΠΈΠ΅ ΠΊΠ»Π°ΡΡΠΎΠ² Π² Visual Studio. ΠΠ΅ΠΎΠ±Ρ ΠΎΠ΄ΠΈΠΌΡ ΠΊΠΎΠ½ΡΡΠ»ΡΡΠ°ΡΠΈΠΈ ΠΏΠΎ ΠΏΠΎΠ΄Ρ ΠΎΠ΄Ρ - c#Export SQLPlus to CSV (problem with output format) - oraclehttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1788437/create-private-repository-in-googlecode&usg=ALkJrhiQ-iy0eh1KdgBNjKIRfrf8PXknawΠΠΎΡΠΏΡΠΎΠΈΠ·Π²Π΅Π΄Π΅Π½ΠΈΠ΅ Π½Π΅ΡΠΊΠΎΠ»ΡΠΊΠΈΡ ΠΊΠΎΠΌΠΏΠΎΠ·ΠΈΡΠΈΠΉ Π΄Π»Ρ ΠΏΠ»Π΅Π΅ΡΠΎΠ² iPod Π½Π° iPhone Π² ΠΎΠ΄Π½ΠΎ ΠΈ ΡΠΎ ΠΆΠ΅ Π²ΡΠ΅ΠΌΡ Ρ ΠΈΠ·Π³ΠΈΠ±ΠΎΠΌ Π²ΡΡΠΎΡΡ ΡΠΎΠ½Π° ΠΈ Π΄ΡΡΠ³ΠΈΠΌΠΈ ΡΡΡΠ΅ΠΊΡΠ°ΠΌΠΈ - objective-cCopy table row by row - sqlA private subversion server that also provides a mailing list - svnIs an object model a model replacement in mvc - model-view-controllerAll Articles