AlexAplin / nndownload

Download and process links from Niconico (nicovideo.jp)
MIT License
223 stars 29 forks source link

Use relative import since it is a module #80

Closed fireattack closed 3 years ago

fireattack commented 3 years ago

Module(s) should use relative import.

Otherwise it would only work if the nndownload folder is directly in path.

Things like

./main.py
./modules/nndownload
./module/othermodules

And then

# main.py 
import nndownload from module

nndownload.execute("https://www.nicovideo.jp/watch/so28966396", "-g")

will break if use absolute import.