Skip to content

Commit 1ac0874

Browse files
committed
Prefer relative imports within the module
1 parent cd2be9c commit 1ac0874

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ More detailed documentation can be found [here](https://docs.qfield.org/referenc
5050
## Module usage
5151

5252
```python
53-
from qfieldcloud_sdk import sdk
53+
from import sdk
5454

5555
client = sdk.Client(url="https://app.qfield.cloud/api/v1/")
5656
client.login(

qfieldcloud_sdk/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from qfieldcloud_sdk.cli import cli
1+
from .cli import cli
22

33
if __name__ == "__main__":
44
cli()

qfieldcloud_sdk/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
import click
77

8-
from qfieldcloud_sdk import sdk
9-
from qfieldcloud_sdk.utils import log, print_json
8+
from . import sdk
9+
from .utils import log, print_json
1010

1111
QFIELDCLOUD_DEFAULT_URL = "https://app.qfield.cloud/api/v1/"
1212

qfieldcloud_sdk/sdk.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
import urllib3
1111
from requests.adapters import HTTPAdapter, Retry
1212

13-
from qfieldcloud_sdk.interfaces import QfcException, QfcRequest, QfcRequestException
14-
from qfieldcloud_sdk.utils import get_numeric_params, log
13+
from .interfaces import QfcException, QfcRequest, QfcRequestException
14+
from .utils import get_numeric_params, log
1515

1616
logger = logging.getLogger(__file__)
1717

0 commit comments

Comments
 (0)