Skip to content

Commit

Permalink
Update import statements
Browse files Browse the repository at this point in the history
Removes the relative import syntax to avoid an ImportError when running the unit test
  • Loading branch information
R1kaB3rN committed Apr 16, 2024
1 parent c829393 commit 76fa45e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion checks.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
""" Run some tests and generate warnings for proton configuration issues
"""

from .logger import log
from logger import log


def esync_file_limits() -> bool:
Expand Down
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
import os
from configparser import ConfigParser
from .logger import log
from logger import log

CONF_FILE = '~/.config/protonfixes/config.ini'
DEFAULT_CONF = '''
Expand Down
8 changes: 4 additions & 4 deletions fix.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
import sys
import urllib
import json
import config

from functools import lru_cache
from importlib import import_module
from .util import check_internet
from .checks import run_checks
from .logger import log
from . import config
from util import check_internet
from checks import run_checks
from logger import log


@lru_cache
Expand Down
6 changes: 3 additions & 3 deletions util.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
import subprocess
import urllib.request
import functools
import config

from socket import socket, AF_INET, SOCK_DGRAM
from typing import Union, Literal, Mapping

from .logger import log
from .steamhelper import install_app
from . import config
from logger import log
from steamhelper import install_app

try:
import __main__ as protonmain
Expand Down

0 comments on commit 76fa45e

Please sign in to comment.