os-agnostic way to get file path

This commit is contained in:
Davte 2019-12-29 22:51:05 +01:00
parent 4c1ffb3382
commit 807c62ca95
4 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ __author__ = "Davide Testa"
__email__ = "davide@davte.it"
__credits__ = ["Marco Origlia", "Nick Lee @Nickoala"]
__license__ = "GNU General Public License v3.0"
__version__ = "2.3.8"
__version__ = "2.3.9"
__maintainer__ = "Davide Testa"
__contact__ = "t.me/davte"

View File

@ -61,7 +61,7 @@ except ImportError:
sys.exit(1)
# Get path of current script
path = os.path.dirname(__file__)
path = os.path.dirname(os.path.abspath(__file__))
def initialize_bot(bot):

View File

@ -28,7 +28,7 @@ except ImportError:
from a_simple_bot import initialize_bot
# Get path of current script
path = os.path.dirname(__file__)
os.path.dirname(os.path.abspath(__file__))
def _main():

View File

@ -24,7 +24,7 @@ except ImportError:
from a_simple_bot import initialize_bot
# Get path of current script
path = os.path.dirname(__file__)
os.path.dirname(os.path.abspath(__file__))
def _main():