Tool zum Umschreiben absoluter Importe in relativePython

Python-Programme
Guest
 Tool zum Umschreiben absoluter Importe in relative

Post by Guest »

Gibt es ein Tool, um absolute Importe in Python automatisch in relative umzuschreiben?

Ich wollte einer Anwendung ein Plugin bereitstellen, und dieses Plugin benötigt und enthält Pymente ( welches absolute Importe verwendet). Deshalb wollte ich den Pygments-Code neu schreiben, ohne alles von Hand zu machen.

Das Plugin könnte ein Element zu sys.path hinzufügen, um Pygments einzuschließen, aber das wollte ich vermeiden.< /p>

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post
  • Relative Importe - ModulenotFoundError: Kein Modul namens x
    by Anonymous » » in Python
    0 Replies
    29 Views
    Last post by Anonymous
  • Relative Importe im lokalen Pythonmodul
    by Anonymous » » in Python
    0 Replies
    6 Views
    Last post by Anonymous
  • Relative Importe in Python 3
    by Anonymous » » in Python
    0 Replies
    4 Views
    Last post by Anonymous
  • Amp -Elemente, die andere Elemente mit absoluter Positionierung abdecken
    by Anonymous » » in CSS
    0 Replies
    17 Views
    Last post by Anonymous
  • Verwenden von .htaccess -Regeln für Replit (PHP) umschreiben
    by Anonymous » » in Php
    0 Replies
    17 Views
    Last post by Anonymous