import sys, os
sys.path.append(os.popen('%cd%' if os.name == 'nt' else 'pwd').read())
# import smth from .. ->
import smth- and call from another file.py
| #!/usr/bin/env python3 | |
| # coding=utf-8 | |
| import os, re, sys, time | |
| import requests | |
| import gdown | |
| import lxml.html | |
| # Solve the limit of 50 on the maximum number of files downloaded in single folder on Google Drive. You can use this script to recursively download a folder, including all the files and subfolders on Google Drive. | |
| # based on https://gist.github.com/DaniDipp/744b52adb341e41fdf871346a59e442c. thanks to @DaniDipp | |
| # fixed the utf-8 folder name problem, by fish4terrisa-MSDSM | |
| # really a dirty hack :) |
| print_info() { | |
| info title | |
| info underline | |
| info "Host" model & | |
| info "OS" distro & | |
| info "DE" de & | |
| info "Locale" locale & # This only works on glibc systems. | |
| info "Kernel" kernel & | |
| info "Packages" packages & |