504 @param venvName name of the virtual environment to be used |
504 @param venvName name of the virtual environment to be used |
505 @type str |
505 @type str |
506 """ |
506 """ |
507 from .PipFileSelectionDialog import PipFileSelectionDialog |
507 from .PipFileSelectionDialog import PipFileSelectionDialog |
508 |
508 |
509 dlg = PipFileSelectionDialog(self, "requirements") |
509 dlg = PipFileSelectionDialog("requirements") |
510 if dlg.exec() == QDialog.DialogCode.Accepted: |
510 if dlg.exec() == QDialog.DialogCode.Accepted: |
511 requirements, user = dlg.getData() |
511 requirements, user = dlg.getData() |
512 if requirements and os.path.exists(requirements): |
512 if requirements and os.path.exists(requirements): |
513 interpreter = self.getVirtualenvInterpreter(venvName) |
513 interpreter = self.getVirtualenvInterpreter(venvName) |
514 if not interpreter: |
514 if not interpreter: |
555 @param venvName name of the virtual environment to be used |
555 @param venvName name of the virtual environment to be used |
556 @type str |
556 @type str |
557 """ |
557 """ |
558 from .PipFileSelectionDialog import PipFileSelectionDialog |
558 from .PipFileSelectionDialog import PipFileSelectionDialog |
559 |
559 |
560 dlg = PipFileSelectionDialog(self, "pyproject") |
560 dlg = PipFileSelectionDialog("pyproject") |
561 if dlg.exec() == QDialog.DialogCode.Accepted: |
561 if dlg.exec() == QDialog.DialogCode.Accepted: |
562 pyproject, user = dlg.getData() |
562 pyproject, user = dlg.getData() |
563 if pyproject and os.path.exists(pyproject): |
563 if pyproject and os.path.exists(pyproject): |
564 try: |
564 try: |
565 with open(pyproject, "r", encoding="utf-8") as f: |
565 with open(pyproject, "r", encoding="utf-8") as f: |
641 @type str |
641 @type str |
642 """ |
642 """ |
643 from .PipFileSelectionDialog import PipFileSelectionDialog |
643 from .PipFileSelectionDialog import PipFileSelectionDialog |
644 |
644 |
645 if venvName: |
645 if venvName: |
646 dlg = PipFileSelectionDialog(self, "requirements", install=False) |
646 dlg = PipFileSelectionDialog("requirements", install=False) |
647 if dlg.exec() == QDialog.DialogCode.Accepted: |
647 if dlg.exec() == QDialog.DialogCode.Accepted: |
648 requirements, _user = dlg.getData() |
648 requirements, _user = dlg.getData() |
649 if requirements and os.path.exists(requirements): |
649 if requirements and os.path.exists(requirements): |
650 try: |
650 try: |
651 with open(requirements, "r") as f: |
651 with open(requirements, "r") as f: |
685 @type str |
685 @type str |
686 """ |
686 """ |
687 from .PipFileSelectionDialog import PipFileSelectionDialog |
687 from .PipFileSelectionDialog import PipFileSelectionDialog |
688 |
688 |
689 if venvName: |
689 if venvName: |
690 dlg = PipFileSelectionDialog(self, "pyproject", install=False) |
690 dlg = PipFileSelectionDialog("pyproject", install=False) |
691 if dlg.exec() == QDialog.DialogCode.Accepted: |
691 if dlg.exec() == QDialog.DialogCode.Accepted: |
692 pyproject, _user = dlg.getData() |
692 pyproject, _user = dlg.getData() |
693 if pyproject and os.path.exists(pyproject): |
693 if pyproject and os.path.exists(pyproject): |
694 try: |
694 try: |
695 with open(pyproject, "r", encoding="utf-8") as f: |
695 with open(pyproject, "r", encoding="utf-8") as f: |