Skip to content

Commit fd908df

Browse files
committed
Fix windows command line problem
Fix windows command line problem
1 parent 3411c54 commit fd908df

File tree

5 files changed

+32
-16
lines changed

5 files changed

+32
-16
lines changed

.idea/workspace.xml

Lines changed: 22 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66

77
[project]
88
name = "je_auto_control_dev"
9-
version = "0.0.97"
9+
version = "0.0.98"
1010
authors = [
1111
{ name = "JE-Chen", email = "[email protected]" },
1212
]

je_auto_control/__main__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ def preprocess_execute_files(file_path: str):
2525

2626

2727
def preprocess_read_str_execute_action(execute_str: str):
28-
execute_str = json.loads(execute_str)
28+
if sys.platform in ["win32", "cygwin", "msys"]:
29+
json_data = json.loads(execute_str)
30+
execute_str = json.loads(json_data)
31+
else:
32+
execute_str = json.loads(execute_str)
2933
execute_action(execute_str)
3034

3135

je_auto_control/gui/main_widget.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ class AutoControlWidget(QWidget):
1212

1313
def __init__(self, main_ui: AutoControlGUI):
1414
super().__init__()
15+
# Variable
1516
self.main_ui = main_ui
17+
# UI component
18+
# Grid layout
1619
self.grid_layout = QGridLayout()
1720
self.setLayout(self.grid_layout)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66

77
[project]
88
name = "je_auto_control"
9-
version = "0.0.156"
9+
version = "0.0.157"
1010
authors = [
1111
{ name = "JE-Chen", email = "[email protected]" },
1212
]

0 commit comments

Comments
 (0)