Skip to content

Commit

Permalink
Use os.path API for backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
igordejanovic committed Feb 12, 2020
1 parent 59437fa commit 8914226
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import os
import sys
from setuptools import setup
from pathlib import Path
this_dir = Path(__file__).absolute().parent
this_dir = os.path.join(os.path.dirname(__file__))

if sys.argv[-1].startswith('publish'):
if os.system("pip list | grep wheel"):
Expand All @@ -21,6 +20,6 @@
sys.exit()

setup(use_scm_version={
"write_to": str(this_dir / "textx" / "version.py"),
"write_to": os.path.join(this_dir, "textx", "version.py"),
"write_to_template": '__version__ = "{version}"\n',
})

0 comments on commit 8914226

Please sign in to comment.