Skip to content

Commit 009fb88

Browse files
authored
run script for py files
simple run script for py foles from command line
1 parent 1779710 commit 009fb88

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

run_script_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# run file or script from IDLE or command line
2+
exec(open('path_to_file').read())

0 commit comments

Comments
 (0)