Skip to content

Commit 55e7e2a

Browse files
committed
Fix windows command line problem
Fix windows command line problem
1 parent 9e55fc6 commit 55e7e2a

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

automation_file/__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

dev_requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ google-api-python-client
33
google-auth-httplib2
44
google-auth-oauthlib
55
APScheduler
6+
twine
7+
build

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ requires = ["setuptools>=61.0"]
55
build-backend = "setuptools.build_meta"
66

77
[project]
8-
name = "automation_file"
9-
version = "0.0.19"
8+
name = "automation_file_dev"
9+
version = "0.0.22"
1010
authors = [
1111
{ name = "JE-Chen", email = "zenmailman@gmail.com" },
1212
]

dev.toml renamed to stable.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ requires = ["setuptools>=61.0"]
55
build-backend = "setuptools.build_meta"
66

77
[project]
8-
name = "automation_file_dev"
9-
version = "0.0.21"
8+
name = "automation_file"
9+
version = "0.0.20"
1010
authors = [
1111
{ name = "JE-Chen", email = "zenmailman@gmail.com" },
1212
]

0 commit comments

Comments
 (0)