You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using os.system to run commands, copy files etc... is generally not a good idea. os.system() does not provide complete or in a few cases, the correct exit status of a program that has crashed. For example, if you are trying to copy a file, and it fails, it will simply return a '1' exit code without telling you exactly why it failed.
There are specific packages built to run shell commands, such as 'shutils' and 'subprocess', we should make use of these instead.
The text was updated successfully, but these errors were encountered:
Using os.system to run commands, copy files etc... is generally not a good idea. os.system() does not provide complete or in a few cases, the correct exit status of a program that has crashed. For example, if you are trying to copy a file, and it fails, it will simply return a '1' exit code without telling you exactly why it failed.
There are specific packages built to run shell commands, such as 'shutils' and 'subprocess', we should make use of these instead.
The text was updated successfully, but these errors were encountered: