change path config
This commit is contained in:
parent
f129cfcc9a
commit
82e82b1cb7
@ -90,7 +90,7 @@ Download the tarball under the Releases page and extract it. `cd` into the direc
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Firstly, if you wish to run this in portable mode, create the empty file "settings.txt" in the program's main directory. If the file is there, settings and data will be stored in the same directory as the program. Otherwise, settings and data will be stored in `C:\Users\[your username]\.youtube-local` on Windows and `~/.youtube-local` on GNU+Linux/MacOS.
|
Firstly, if you wish to run this in portable mode, create the empty file "settings.txt" in the program's main directory. If the file is there, settings and data will be stored in the same directory as the program. Otherwise, settings and data will be stored in `C:\Users\[your username]\.yt-local` on Windows and `~/.yt-local` on GNU+Linux/MacOS.
|
||||||
|
|
||||||
To run the program on windows, open `run.bat`. On GNU+Linux/MacOS, run `python3 server.py`.
|
To run the program on windows, open `run.bat`. On GNU+Linux/MacOS, run `python3 server.py`.
|
||||||
|
|
||||||
|
@ -73,4 +73,4 @@ after, modified execute permissions:
|
|||||||
- disable: `doas rc-update del ytlocal`
|
- disable: `doas rc-update del ytlocal`
|
||||||
|
|
||||||
When yt-local is run with administrator privileges,
|
When yt-local is run with administrator privileges,
|
||||||
the configuration file is stored in /root/.youtube-local
|
the configuration file is stored in /root/.yt-local
|
||||||
|
@ -390,8 +390,8 @@ if os.path.isfile("settings.txt"):
|
|||||||
data_dir = os.path.normpath('./data')
|
data_dir = os.path.normpath('./data')
|
||||||
else:
|
else:
|
||||||
print("Running in non-portable mode")
|
print("Running in non-portable mode")
|
||||||
settings_dir = os.path.expanduser(os.path.normpath("~/.youtube-local"))
|
settings_dir = os.path.expanduser(os.path.normpath("~/.yt-local"))
|
||||||
data_dir = os.path.expanduser(os.path.normpath("~/.youtube-local/data"))
|
data_dir = os.path.expanduser(os.path.normpath("~/.yt-local/data"))
|
||||||
if not os.path.exists(settings_dir):
|
if not os.path.exists(settings_dir):
|
||||||
os.makedirs(settings_dir)
|
os.makedirs(settings_dir)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user