toolfor-debug 0.2.0.0__tar.gz → 0.2.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {toolfor_debug-0.2.0.0/toolfor_debug.egg-info → toolfor_debug-0.2.1.0}/PKG-INFO +1 -1
- {toolfor_debug-0.2.0.0 → toolfor_debug-0.2.1.0}/pyproject.toml +1 -1
- {toolfor_debug-0.2.0.0 → toolfor_debug-0.2.1.0}/toolfor_debug/__init__.py +4 -6
- {toolfor_debug-0.2.0.0 → toolfor_debug-0.2.1.0/toolfor_debug.egg-info}/PKG-INFO +1 -1
- {toolfor_debug-0.2.0.0 → toolfor_debug-0.2.1.0}/LICENSE +0 -0
- {toolfor_debug-0.2.0.0 → toolfor_debug-0.2.1.0}/README.md +0 -0
- {toolfor_debug-0.2.0.0 → toolfor_debug-0.2.1.0}/setup.cfg +0 -0
- {toolfor_debug-0.2.0.0 → toolfor_debug-0.2.1.0}/toolfor_debug/__update__.py +0 -0
- {toolfor_debug-0.2.0.0 → toolfor_debug-0.2.1.0}/toolfor_debug.egg-info/SOURCES.txt +0 -0
- {toolfor_debug-0.2.0.0 → toolfor_debug-0.2.1.0}/toolfor_debug.egg-info/dependency_links.txt +0 -0
- {toolfor_debug-0.2.0.0 → toolfor_debug-0.2.1.0}/toolfor_debug.egg-info/top_level.txt +0 -0
|
@@ -79,7 +79,7 @@ class Tools:
|
|
|
79
79
|
@staticmethod
|
|
80
80
|
def dprint(*args, **kwargs):
|
|
81
81
|
global debug_mode, output_file
|
|
82
|
-
if debug_mode
|
|
82
|
+
if debug_mode in ["p+", "p"] and output_file is not None:
|
|
83
83
|
if output_file == "pythonconsole":
|
|
84
84
|
print("DEBUG: ", *args, **kwargs)
|
|
85
85
|
|
|
@@ -93,17 +93,15 @@ class Tools:
|
|
|
93
93
|
with open(output_file, "a") as f:
|
|
94
94
|
if os.path.exists(output_file):
|
|
95
95
|
print("DEBUG: ", *args, **kwargs, file=f)
|
|
96
|
-
else:
|
|
97
|
-
print("Output file doesn't exists, please create it or use pythonconsole or automatic as output")
|
|
98
96
|
else:
|
|
99
97
|
print("Debug mode is not active or output file is not set for dprint")
|
|
100
98
|
|
|
101
99
|
@staticmethod
|
|
102
|
-
def dinput(
|
|
100
|
+
def dinput(arg):
|
|
103
101
|
global debug_mode, output_file
|
|
104
|
-
if debug_mode
|
|
102
|
+
if debug_mode in ["p+", "i"] and output_file is not None:
|
|
105
103
|
if output_file == "pythonconsole":
|
|
106
|
-
return input("DEBUG: "
|
|
104
|
+
return input("DEBUG: " + str(arg))
|
|
107
105
|
else:
|
|
108
106
|
print("Dinput do not support output by file, use pythonconsole as output to use dinput")
|
|
109
107
|
return None
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|