Skip to content

Commit

Permalink
fix: Fix the issue of Python LSP not working
Browse files Browse the repository at this point in the history
Problems caused by environment variables not taking effect

Bug: https://pms.uniontech.com/bug-view-276917.html
Log: fix bug
  • Loading branch information
Kakueeen authored and deepin-mozart committed Oct 10, 2024
1 parent eb59e57 commit 422c6c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/translations/zh_CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5945,7 +5945,7 @@ not exists support files: %0</source>
<location filename="../../src/plugins/option/optioncore/mainframe/shortcutsettingwidget.cpp" line="345"/>
<location filename="../../src/plugins/option/optioncore/mainframe/shortcutsettingwidget.cpp" line="373"/>
<source>Keyboard Mapping Scheme (*.kms)</source>
<translation>键盘映射方案</translation>
<translation>键盘映射方案 (*.kms)</translation>
</message>
<message>
<location filename="../../src/plugins/option/optioncore/mainframe/shortcutsettingwidget.cpp" line="371"/>
Expand Down
4 changes: 3 additions & 1 deletion src/common/util/environment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Program search(Category category, Kit kit, const Version &version)
program + QString::number(executeVersion.major.value());
}

if (executeVersion.major.has_value() && executeVersion.minor.has_value())
if (executeVersion.major.has_value() && executeVersion.minor.has_value()) {
ret.pkgsPath = QDir::homePath() + QDir::separator()
+ ".local" + QDir::separator()
+ "lib" + QDir::separator()
Expand All @@ -83,6 +83,8 @@ Program search(Category category, Kit kit, const Version &version)
+ QString::number(executeVersion.minor.value())
+ QDir::separator()
+ "site-packages";
ret.binsPath = QDir::homePath() + "/.local/bin";
}
}
}
}
Expand Down

0 comments on commit 422c6c9

Please sign in to comment.