mirror of
https://github.com/SqrtMinusOne/sqrtminusone.github.io.git
synced 2025-12-10 15:53:03 +03:00
fix: _data in scripts
This commit is contained in:
parent
2e3a455632
commit
3c9b975059
2 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
ROOT=$(git rev-parse --show-toplevel)
|
ROOT=$(git rev-parse --show-toplevel)
|
||||||
DOTFILES_REPO=$(git rev-parse --show-toplevel)/repos/dotfiles
|
DOTFILES_REPO=$(git rev-parse --show-toplevel)/repos/dotfiles
|
||||||
DATA_ROOT=$(git rev-parse --show-toplevel)/_data
|
DATA_ROOT=$(git rev-parse --show-toplevel)/__data
|
||||||
|
|
||||||
echo $ROOT
|
echo $ROOT
|
||||||
echo $DOTFILES_REPO
|
echo $DOTFILES_REPO
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ root_process = subprocess.run(
|
||||||
['git', 'rev-parse', '--show-toplevel'], stdout=subprocess.PIPE
|
['git', 'rev-parse', '--show-toplevel'], stdout=subprocess.PIPE
|
||||||
)
|
)
|
||||||
ROOT = root_process.stdout.decode('utf-8')[:-1]
|
ROOT = root_process.stdout.decode('utf-8')[:-1]
|
||||||
DATA_ROOT = os.path.join(ROOT, '_data')
|
DATA_ROOT = os.path.join(ROOT, '__data')
|
||||||
PICS_ROOT = os.path.join(ROOT, 'static', 'stats')
|
PICS_ROOT = os.path.join(ROOT, 'static', 'stats')
|
||||||
|
|
||||||
plt.style.use(os.path.join(ROOT, 'scripts', 'palenight.mplstyle'))
|
plt.style.use(os.path.join(ROOT, 'scripts', 'palenight.mplstyle'))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue