SerjSX / pSearch

Searching tool written in Python for Piracy related websites.
https://serjsx.github.io/wpSearch/
GNU General Public License v3.0
69 stars 1 forks source link

use sys.path[0] instead of os.getcwd() #4

Closed viggo-wellme closed 1 year ago

viggo-wellme commented 1 year ago

os.getcwd() gets the directory that the user is currently in, and sys.path[0] gets the directory of the script. sys.path[0] is better on Linux because you don't need to be in the same directory as the script to run it. this also benefits windows users if they are using the terminal.