This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
from pathlib import Path | |
# Set the "./../lib" from the script folder | |
dir_name = None | |
try: | |
dir_name = os.path.dirname(os.path.realpath(__file__)) | |
except NameError: | |
print("WARN: __file__ not found, trying local") | |
dir_name = os.path.abspath('') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Copyright (C) 2022 Avneesh Mishra - GNU GPLv3 | |
# | |
# This program is free software: you can redistribute it and/or modify it | |
# under the terms of the GNU General Public License as published by the | |
# Free Software Foundation, either version 3 of the License, or (at your | |
# option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, but |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
readonly VERSION_MAJOR=1 | |
readonly VERSION_MINOR=2 | |
VERSION="${VERSION_MAJOR}.${VERSION_MINOR}" | |
# Program properties | |
readonly ARGS="$@" # Reset using https://stackoverflow.com/a/4827707 | |
readonly PROGNAME=$(basename $0) | |
readonly PROGPATH=$(realpath $(dirname $0)) |