fix: 解决不同用户使用远程应用Navicat登录Oracle失败的问题

pull/9485/head
jiangweidong 2023-02-09 16:25:10 +08:00 committed by Eric_Lee
parent 403faf9663
commit b3e609dc9b
1 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,4 @@
import os
import sys import sys
import time import time
@ -172,7 +173,8 @@ class AppletApplication(BaseApplication):
def run(self): def run(self):
self.launch() self.launch()
app = Application(backend='uia') app = Application(backend='uia')
app.start(self.path) work_dir = os.path.dirname(self.path)
app.start(self.path, work_dir=work_dir)
self.pid = app.process self.pid = app.process
# 检测是否为试用版本 # 检测是否为试用版本