quarchpy 2.2.17.dev1__py3-none-any.whl → 2.2.17.dev2__py3-none-any.whl
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.
- quarchpy/_version.py +1 -1
- quarchpy/qis/qisFuncs.py +10 -9
- quarchpy/qps/qpsFuncs.py +9 -9
- {quarchpy-2.2.17.dev1.dist-info → quarchpy-2.2.17.dev2.dist-info}/METADATA +1 -1
- {quarchpy-2.2.17.dev1.dist-info → quarchpy-2.2.17.dev2.dist-info}/RECORD +7 -7
- {quarchpy-2.2.17.dev1.dist-info → quarchpy-2.2.17.dev2.dist-info}/WHEEL +0 -0
- {quarchpy-2.2.17.dev1.dist-info → quarchpy-2.2.17.dev2.dist-info}/top_level.txt +0 -0
quarchpy/_version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "2.2.17.
|
|
1
|
+
__version__ = "2.2.17.dev2"
|
quarchpy/qis/qisFuncs.py
CHANGED
|
@@ -8,6 +8,9 @@ import os, sys
|
|
|
8
8
|
import time, platform
|
|
9
9
|
from threading import Thread, Lock, Event, active_count
|
|
10
10
|
from queue import Queue, Empty
|
|
11
|
+
|
|
12
|
+
import quarchpy_binaries
|
|
13
|
+
|
|
11
14
|
from quarchpy.connection_specific.connection_QIS import QisInterface
|
|
12
15
|
from quarchpy.connection_specific.jdk_jres.fix_permissions import main as fix_permissions, find_java_permissions
|
|
13
16
|
from quarchpy.install_qps import find_qps
|
|
@@ -95,9 +98,7 @@ def startLocalQis(terminal=False, headless=False, args=None, timeout=20):
|
|
|
95
98
|
return
|
|
96
99
|
|
|
97
100
|
# java path
|
|
98
|
-
java_path =
|
|
99
|
-
java_path, junk = os.path.split(java_path)
|
|
100
|
-
java_path = os.path.join(java_path, "connection_specific", "jdk_jres")
|
|
101
|
+
java_path = quarchpy_binaries.get_jre_home()
|
|
101
102
|
java_path = "\"" + java_path
|
|
102
103
|
|
|
103
104
|
# change directory to /QPS/QIS
|
|
@@ -170,17 +171,17 @@ def startLocalQis(terminal=False, headless=False, args=None, timeout=20):
|
|
|
170
171
|
|
|
171
172
|
# different start for different OS
|
|
172
173
|
if current_os == "Windows":
|
|
173
|
-
command = java_path + "\\
|
|
174
|
+
command = java_path + "\\bin\\" + command
|
|
174
175
|
elif current_os == "Linux" and current_arch == "x86_64":
|
|
175
|
-
command = java_path + "/
|
|
176
|
+
command = java_path + "/bin/" + command
|
|
176
177
|
elif current_os == "Linux" and current_arch == "aarch64":
|
|
177
|
-
command = java_path + "/
|
|
178
|
+
command = java_path + "/bin/" + command
|
|
178
179
|
elif current_os == "Darwin" and current_arch == "x86_64":
|
|
179
|
-
command = java_path + "/
|
|
180
|
+
command = java_path + "/bin/" + command
|
|
180
181
|
elif current_os == "Darwin" and current_arch == "arm64":
|
|
181
|
-
command = java_path + "/
|
|
182
|
+
command = java_path + "/bin/" + command
|
|
182
183
|
else: # default to windows
|
|
183
|
-
command = java_path + "\\
|
|
184
|
+
command = java_path + "\\bin\\" + command
|
|
184
185
|
|
|
185
186
|
# Use the command and check QIS has launched
|
|
186
187
|
# If logging to a terminal window is on then os.system should be used to view logging.
|
quarchpy/qps/qpsFuncs.py
CHANGED
|
@@ -2,6 +2,8 @@ from threading import Thread, Lock, Event
|
|
|
2
2
|
from queue import Queue, Empty
|
|
3
3
|
import platform
|
|
4
4
|
|
|
5
|
+
import quarchpy_binaries
|
|
6
|
+
|
|
5
7
|
from quarchpy.install_qps import find_qps
|
|
6
8
|
from quarchpy.qis import isQisRunning, startLocalQis
|
|
7
9
|
from quarchpy.connection_specific.connection_QPS import QpsInterface
|
|
@@ -91,9 +93,7 @@ def startLocalQps(keepQisRunning=False, args=[], timeout=30, startQPSMinimised=T
|
|
|
91
93
|
current_dir = os.getcwd()
|
|
92
94
|
|
|
93
95
|
# JRE path
|
|
94
|
-
java_path =
|
|
95
|
-
java_path, junk = os.path.split(java_path)
|
|
96
|
-
java_path = os.path.join(java_path, "connection_specific", "jdk_jres")
|
|
96
|
+
java_path = quarchpy_binaries.get_jre_home()
|
|
97
97
|
java_path = "\"" + java_path
|
|
98
98
|
# Start to build the path towards qps.jar
|
|
99
99
|
qps_path = os.path.dirname(os.path.abspath(__file__))
|
|
@@ -136,17 +136,17 @@ def startLocalQps(keepQisRunning=False, args=[], timeout=30, startQPSMinimised=T
|
|
|
136
136
|
|
|
137
137
|
# OS dependency
|
|
138
138
|
if current_os in "Windows":
|
|
139
|
-
command = java_path + "\\
|
|
139
|
+
command = java_path + "\\bin\\java\" -jar qps.jar " + str(args)
|
|
140
140
|
elif current_os in "Linux" and current_arch == "x86_64":
|
|
141
|
-
command = java_path + "/
|
|
141
|
+
command = java_path + "/bin/java\" -jar qps.jar " + str(args)
|
|
142
142
|
elif current_os in "Linux" and current_arch == "aarch64":
|
|
143
|
-
command = java_path + "/
|
|
143
|
+
command = java_path + "/bin/java\" -jar qps.jar " + str(args)
|
|
144
144
|
elif current_os in "Darwin" and current_arch == "x86_64":
|
|
145
|
-
command = java_path + "/
|
|
145
|
+
command = java_path + "/bin/java\" -jar qps.jar " + str(args)
|
|
146
146
|
elif current_os in "Darwin" and current_arch == "arm64":
|
|
147
|
-
command = java_path + "/
|
|
147
|
+
command = java_path + "/bin/java\" -jar qps.jar " + str(args)
|
|
148
148
|
else: # default to windows
|
|
149
|
-
command = java_path + "\\
|
|
149
|
+
command = java_path + "\\bin\\java\" -jar qps.jar " + str(args)
|
|
150
150
|
|
|
151
151
|
if isQpsRunning():
|
|
152
152
|
logger.debug("QPS is already running. Not starting another instance.")
|
|
@@ -2,7 +2,7 @@ quarchpy/LICENSE.rst,sha256=SmYK6o5Xs2xRaUwYT-HqNDRu9eygu6y9QwweXNttiRc,3690
|
|
|
2
2
|
quarchpy/QuarchPy Function Listing.xlsx,sha256=NE68cZPn7b9P3wcnCsnQr3H6yBkt6D5S6dH6457X520,31245
|
|
3
3
|
quarchpy/README.txt,sha256=-LbrJ5rCPGSxoBmvr9CxJVokQUDwZSjoHa43eN8bWck,980
|
|
4
4
|
quarchpy/__init__.py,sha256=Tcy5E_CYPeI9gZIXo8HGFU8EEFAHy_iLLLGGvJY0LII,4827
|
|
5
|
-
quarchpy/_version.py,sha256=
|
|
5
|
+
quarchpy/_version.py,sha256=C7lcL4wEmssyY-yDgX28o5czgs4xOCFShHls1_F6jIs,28
|
|
6
6
|
quarchpy/connection.py,sha256=9lPIUP4LCWkFAedc8CWorDY-3ujdAA-cyeNkSBdIv9E,2226
|
|
7
7
|
quarchpy/install_qps.py,sha256=SA5apEma3MOAZUibgwZD7tzQZw8VExTIfBKIFpdhPK0,14276
|
|
8
8
|
quarchpy/run.py,sha256=CXclGxRDuXzFKw7jNM0f_ooF-s7TaPxbubnYOYg2BRk,10550
|
|
@@ -747,9 +747,9 @@ quarchpy/iometer/gen_iometer_template.py,sha256=f0YM786dG4c1Bioq6zeclG83r8HBaffO
|
|
|
747
747
|
quarchpy/iometer/iometerFuncs.py,sha256=qc0GK2SiCUHU_7mGL0z35MyNCdTcfSEf2wR1zti6KDY,14178
|
|
748
748
|
quarchpy/qis/StreamHeaderInfo.py,sha256=InbVGRGrLCcIISZHb-IMmLu3gLx5RkAO1tUnEqM-pHM,8185
|
|
749
749
|
quarchpy/qis/__init__.py,sha256=QRVPy96G7RUx6ldofcD-xNN4NHeNjkasSu8DXkyRB0k,307
|
|
750
|
-
quarchpy/qis/qisFuncs.py,sha256=
|
|
750
|
+
quarchpy/qis/qisFuncs.py,sha256=oVrGmGzfwv0xy4GV4jPPs44SqWd5ywA5of78WzSqQAk,13219
|
|
751
751
|
quarchpy/qps/__init__.py,sha256=Kq5Ae1hy6c0nw26OwY1X31e72-wZ4C8RraTku6pvEfw,270
|
|
752
|
-
quarchpy/qps/qpsFuncs.py,sha256=
|
|
752
|
+
quarchpy/qps/qpsFuncs.py,sha256=8a29CzMSi6AmJnHhPP2B4seYPnm2I-8yoVSu1i00nwc,12244
|
|
753
753
|
quarchpy/user_interface/__init__.py,sha256=ix0icQvmKUTRgvfhXK3PxiDGyITkPYY-08hFjuhbupo,298
|
|
754
754
|
quarchpy/user_interface/user_interface.py,sha256=NvN-9yL8jMn6DwY9KN1oQKXELDa3v3iVvqblsi9ZZVQ,29586
|
|
755
755
|
quarchpy/utilities/BitManipulation.py,sha256=vLw2PF5z-d-2MY_yEU0l9FEBYTlCklM336XU2vPKAas,1016
|
|
@@ -757,7 +757,7 @@ quarchpy/utilities/TestCenter.py,sha256=5D63n-Wh1ADR5XSzxq1PAfynSEW-eN7fy9yMo3fI
|
|
|
757
757
|
quarchpy/utilities/TimeValue.py,sha256=GJ5uxMkcnpRMFst5hoArZiPsUqLieLcKhMn_OdOmZwI,2192
|
|
758
758
|
quarchpy/utilities/Version.py,sha256=i57qRgHwGSXf2wPVVNUZfG9Tu6f5hWxZLPy7XCw2WkQ,1578
|
|
759
759
|
quarchpy/utilities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
760
|
-
quarchpy-2.2.17.
|
|
761
|
-
quarchpy-2.2.17.
|
|
762
|
-
quarchpy-2.2.17.
|
|
763
|
-
quarchpy-2.2.17.
|
|
760
|
+
quarchpy-2.2.17.dev2.dist-info/METADATA,sha256=uOp1z1MyIk2ZnF7sK5bXeYuJwA-3xsplwH_GOu566Rk,10982
|
|
761
|
+
quarchpy-2.2.17.dev2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
762
|
+
quarchpy-2.2.17.dev2.dist-info/top_level.txt,sha256=Vc7qsvkVax7oeBaBy_e7kvJvqb_VAAJcW_MuDMmi5W8,9
|
|
763
|
+
quarchpy-2.2.17.dev2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|