Skip to content

Commit b736c61

Browse files
committed
Fix bug
1 parent 341ae46 commit b736c61

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

Build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
from os import walk
44
from os.path import join

core.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33

44
import re
@@ -55,7 +55,7 @@
5555

5656
class Time:
5757
wf = None
58-
_query = None
58+
_query: str = None
5959

6060
time = None
6161
now = False
@@ -75,12 +75,11 @@ def query(self, value):
7575
self._query = value.strip(" ")
7676

7777
def do_parser(self):
78-
self.wf.logger.debug(
79-
f"query string:{type(self.wf.args[0])} {self.wf.args[0]}"
80-
)
78+
self.wf.logger.debug(f"query string:{type(self.wf.args[0])} {self.wf.args[0]}")
8179

8280
try:
83-
self.query = self.wf.args[0].encode("utf8")
81+
# self.query = self.wf.args[0].encode("utf8")
82+
self.query = self.wf.args[0]
8483
except IndexError:
8584
self.wf.logger.debug("parser workflow args failed.")
8685
return False

entry_point.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
import sys
44

info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
<key>runningsubtext</key>
6161
<string></string>
6262
<key>script</key>
63-
<string>/usr/bin/python entry_point.py "{query}"</string>
63+
<string>python3 entry_point.py "{query}"</string>
6464
<key>scriptargtype</key>
6565
<integer>0</integer>
6666
<key>scriptfile</key>

0 commit comments

Comments
 (0)