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