Spaces:
Runtime error
Runtime error
feat: create setting module
Browse files
modules/setting_modules.py
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import sys, os
|
2 |
+
|
3 |
+
# Disable
|
4 |
+
def blockPrint():
|
5 |
+
sys.stdout = open(os.devnull, 'w')
|
6 |
+
|
7 |
+
# Restore
|
8 |
+
def enablePrint():
|
9 |
+
sys.stdout = sys.__stdout__
|