Embedding FreeCAD: How to import FreeCAD as a Python module in other applications
Intégration de FreeCad: Comment importer FreeCad comme simple module dans une application externe
Importing Modules The modules described in this chapter provide new ways to import other Python modules and hooks for customizing the import process.
Les modules décrits dans ce chapitre fournissent de nouveaux moyens d'importer d'autres modules Python, et des hooks pour personnaliser le processus d'importation.
The IPython Console Plugin allows real-time interaction with a selected item in the Application Tree View. Since the IPython Console Plugin is an interactive Python shell, you can import any Python modules you want.
Le greffon « Console IPython » permet une interaction en temps réel avec un élément sélectionné dans le Panneau de l'arborescence des applications. Comme ce greffon est un terminal interactif Python, vous pouvez importer les modules Python que vous voulez.
Otherwise you have only the command line and the Python import module.
When we try to import a module, Python looks for it in all the folders listed in sys.path.
Lorsque nous essayons d'importer un module, Python cherche dans tous les dossiers listés dans sys.path.
It's even possible to import the FreeCAD GUI as python module - with some restrictions, however. Using FreeCAD without GUI
Il est même possible d'importer l'interface graphique (GUI) de FreeCAD en tant que module python avec toutefois, quelques restrictions.
web2py model and controller files are not Python modules in that they cannot be imported using the Python import statement.
Les fichiers de modèle et de contrôleur web2py ne sont pas des modules Python et ne peuvent pas être importés en utilisant la déclaration Python import.
Cython is simultaneously similar to both Python and C. Most Python constructions, including list comprehensions, conditional expressions, code like += are allowed; you can also import code that you have written in other Python modules.
Cython ressemble à la fois à Python et à C. La plupart des constructions Python, dont la définition de listes par compréhension, les expressions conditionnelles, les constructions comme += sont autorisées en Cython.
In fact, any Python module, even if not imported by a web2py application, can import the web2py API as long as web2py is in the sys.path.
En fait, n'importe quel module Python, même s'il n'est pas importé par une application web2py, peut importer les API web2py aussi longtemps que web2py est dans sys.path.
Pygame is a set of Python modules designed for writing games.
Pygame est un ensemble de modules Python conçu pour écrire des jeux.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.