Source
153
153
print("could not sync with casaviewer...")
154
154
except ModuleNotFoundError:
155
155
try:
156
156
np_path = __mkfifo( )
157
157
with open(__os.devnull, 'r+b', 0) as DEVNULL:
158
158
# __proc = Popen( [ app_path, '%s=%s' % (server,np_path) ],
159
159
# stdin=DEVNULL, stdout=STDOUT, stderr=STDOUT,
160
160
# close_fds=True )
161
161
__proc[server] = Popen( [ app_path, '--casalogfile=%s' % casalog.logfile(),
162
162
'%s=%s' % (server,np_path) ] + data_path + rcdir + nogui)
163
-
>>>>>>> master
164
163
​
165
164
with open( np_path, 'r' ) as input:
166
165
__uri[server] = input.readline( ).rstrip( )
167
166
print("casaviewer: %s" % __uri[server])
168
167
__os.remove(np_path)
169
168
global __registered
170
169
if not __registered:
171
170
import atexit
172
171
atexit.register(__shutdown_sans_casatools)
173
172
__registered = True