mirror of
https://github.com/1j01/textual-paint.git
synced 2024-10-27 01:41:29 +03:00
Move imports so that Organize Imports doesn't break it
Before, if I ran Organize Imports in VS Code, it reordered things such that `sys.path.insert` was after the import that needed it. Now it's stable.
This commit is contained in:
parent
b6e2c245a2
commit
fc1baa9815
@ -3,6 +3,8 @@
|
||||
https://docs.pytest.org/en/7.1.x/reference/fixtures.html#conftest-py-sharing-fixtures-across-multiple-files
|
||||
"""
|
||||
|
||||
import os
|
||||
import sys
|
||||
from pathlib import Path
|
||||
from typing import Generator
|
||||
|
||||
@ -11,7 +13,8 @@ from pyfakefs.fake_filesystem import FakeFilesystem
|
||||
|
||||
# This is needed on Windows but not Ubuntu/macOS?
|
||||
# I hate python's import system with a burning passion.
|
||||
import sys, os; sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(__file__), '../src/')))
|
||||
sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(__file__), '../src/')))
|
||||
|
||||
from textual_paint.figlet_font_writer import FIGletFontWriter
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user