Skip to content

Commit

Permalink
__main__: prefer list.insert when extending PYTHONPATH
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed Nov 29, 2024
1 parent 34ac322 commit c4912ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions umu/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
from zipfile import is_zipfile

if not is_zipfile(os.path.dirname(__file__)): # noqa: PTH120
sys.path = [
sys.path.insert(
0,
f"{os.path.dirname(os.path.realpath(__file__, strict=True))}/_vendor", # noqa: PTH120
*sys.path,
]
)

from argparse import ArgumentParser, Namespace, RawTextHelpFormatter

Expand Down

0 comments on commit c4912ba

Please sign in to comment.