mirror of
https://github.com/frappe/bench.git
synced 2024-09-24 04:59:01 +00:00
style: clearer import paths
This commit is contained in:
parent
3d3b3721f0
commit
8fb831d870
@ -60,10 +60,7 @@ def write_appstxt(apps, bench_path='.'):
|
|||||||
return f.write('\n'.join(apps))
|
return f.write('\n'.join(apps))
|
||||||
|
|
||||||
def check_url(url, raise_err=True):
|
def check_url(url, raise_err=True):
|
||||||
try:
|
from six.moves.urllib.parse import urlparse
|
||||||
from urlparse import urlparse
|
|
||||||
except ImportError:
|
|
||||||
from urllib.parse import urlparse
|
|
||||||
|
|
||||||
parsed = urlparse(url)
|
parsed = urlparse(url)
|
||||||
if not parsed.scheme:
|
if not parsed.scheme:
|
||||||
|
@ -1,11 +1,16 @@
|
|||||||
from .common_site_config import get_config
|
# imports - standard imports
|
||||||
import re, os, subprocess, semantic_version
|
import os
|
||||||
import bench
|
import re
|
||||||
|
import subprocess
|
||||||
|
|
||||||
|
# imports - third party imports
|
||||||
|
import semantic_version
|
||||||
|
from six.moves.urllib.parse import urlparse
|
||||||
|
|
||||||
|
# imports - module imports
|
||||||
|
import bench
|
||||||
|
from bench.config.common_site_config import get_config
|
||||||
|
|
||||||
try:
|
|
||||||
from urllib.parse import urlparse
|
|
||||||
except ImportError:
|
|
||||||
from urlparse import urlparse
|
|
||||||
|
|
||||||
def generate_config(bench_path):
|
def generate_config(bench_path):
|
||||||
config = get_config(bench_path)
|
config = get_config(bench_path)
|
||||||
|
Loading…
Reference in New Issue
Block a user