mirror of
https://github.com/vikstrous/pirate-get
synced 2025-01-09 09:59:51 +01:00
8 lines
170 B
Python
8 lines
170 B
Python
import os
|
|
|
|
def data_path(name):
|
|
return os.path.join(os.path.dirname(os.path.realpath(__file__)), 'data', name)
|
|
|
|
def open_data(name):
|
|
return open(data_path(name))
|