Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Refinement of the run function in app.py#148

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
demonolock merged 1 commit intomasterfromrefinement_run_function
Nov 20, 2024

Conversation

MakSl
Copy link
Contributor

No description provided.

@@ -73,6 +73,9 @@ def run(self, command, gdb=False, old_binary=False, return_id=True, env=None,
command = [command[0], *use_backup_dir.pb_args, *command[1:]]
elif use_backup_dir:
command = [command[0], *self.backup_dir.pb_args, *command[1:]]
else:
use_backup_dir = self.backup_dir.pb_args[2:]
command = [command[0], *use_backup_dir, *command[1:]]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Тут не
command = [command[0], *self.backup_dir.pb_args, *command[1:]] ?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@demonolock,
Если у нас use_backup_dir=true, то строчка действительно так будет выглядеть.
Но если use_backup_dir=false, то значит, что мы сами передаем путь к backup_dir (флаг и путь будет у нас находиться в command). А первые 2 аргумента в self.backup_dir.pb_args это -В и путь. В итоге, будет выдаваться ошибка, что мы дважды указали -В. Поэтому первые 2 значения я пропускаю и добавляю только доп флаги, если они есть.

Copy link
Contributor

@MetalDream666MetalDream666Nov 19, 2024
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Скорее,command = [command[0], *self.backup_dir.pb_args[2:], *command[1:]]

MakSl reacted with thumbs up emoji
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@MetalDream666 ,
Да, действительно. Так лучше. Поправил.

@MakSlMakSlforce-pushed therefinement_run_function branch from9366283 to2d2a156CompareNovember 19, 2024 13:20
@demonolockdemonolock merged commit644eea8 intomasterNov 20, 2024
2 checks passed
@demonolockdemonolock deleted the refinement_run_function branchNovember 20, 2024 11:56
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@demonolockdemonolockdemonolock left review comments

@MetalDream666MetalDream666MetalDream666 left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@MakSl@demonolock@MetalDream666

[8]ページ先頭

©2009-2025 Movatter.jp