mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
correct use of __file__
This commit is contained in:
@ -17,7 +17,7 @@
|
||||
|
||||
import os
|
||||
|
||||
DIR = os.path.dirname("__file__")
|
||||
DIR = os.path.dirname(__file__)
|
||||
with open(os.path.join(DIR, "../setup.py"), "r") as f:
|
||||
for line in f:
|
||||
if "version=" in line:
|
||||
|
||||
Reference in New Issue
Block a user