os-agnostic way to get file path
This commit is contained in:
@@ -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):
|
||||
|
@@ -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():
|
||||
|
@@ -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():
|
||||
|
Reference in New Issue
Block a user