Unverified Commit 3da564c7 authored by Julien Veyssier's avatar Julien Veyssier
Browse files

fix step1 tqdm import (only if executed)


Signed-off-by: default avatarJulien Veyssier <eneiluj@posteo.net>
parent 8523d22d
No related merge requests found
Showing with 10 additions and 10 deletions
+10 -10
......@@ -45,16 +45,6 @@ except Exception as e:
print('or if you don\'t have superuser access:\n')
print('%spip3 install dbf%s\n' % (COLOR_GREEN, COLOR_RESET))
try:
from tqdm import tqdm
except Exception as e:
print('!!! %s tqdm python3 module not found !!%s\n' % (COLOR_RED, COLOR_RESET))
print('On Debian/Ubuntu/Linux Mint you can install it with:\n')
print('%ssudo apt install python3-tqdm%s\n' % (COLOR_GREEN, COLOR_RESET))
print('or if you don\'t have superuser access:\n')
print('%spip3 install tqdm%s\n' % (COLOR_GREEN, COLOR_RESET))
sys.exit(1)
MY_ABS_PATH=os.path.abspath(__file__)
MY_DIR=os.path.dirname(MY_ABS_PATH)
DATA_PATH=os.path.join(MY_DIR, '..', 'data')
......@@ -349,6 +339,16 @@ if __name__ == '__main__':
from progressColors import *
from parallel import buildGrassEnv
from ogr2ogr import main as ogr2ogrMain
try:
from tqdm import tqdm
except Exception as e:
print('!!! %s tqdm python3 module not found !!%s\n' % (COLOR_RED, COLOR_RESET))
print('On Debian/Ubuntu/Linux Mint you can install it with:\n')
print('%ssudo apt install python3-tqdm%s\n' % (COLOR_GREEN, COLOR_RESET))
print('or if you don\'t have superuser access:\n')
print('%spip3 install tqdm%s\n' % (COLOR_GREEN, COLOR_RESET))
sys.exit(1)
parms_file = 'hrudelin_config.cfg'
if len(sys.argv) > 1:
parms_file = sys.argv[1]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment