Skip to content

Commit

Permalink
Switch to sys.exec_prefix (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
ar0ch committed Oct 22, 2021
1 parent 2759717 commit 00f57b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="tagore",
version="1.1.0",
version="1.1.1",
author="Applied Bioinformatics Laboratory",
author_email="[email protected]",
description="A simple way to visualize features on human chromosome ideograms",
Expand Down
4 changes: 2 additions & 2 deletions tagore.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from argparse import ArgumentParser, HelpFormatter


VERSION = '1.0.2'
VERSION = '1.1.1'

COORDINATES = {
"1": {"cx": 128.6, "cy": 1.5, "ht": 1654.5, "width": 118.6},
Expand Down Expand Up @@ -232,7 +232,7 @@ def draw(arguments):
if ARGS.oformat not in ["png", "pdf"]:
print(f"\033[93m{ARGS.oformat} is not PNG or PDF, using PNG\033[0m")
ARGS.oformat = "png"
BASE_PATH = os.path.join(sys.prefix, 'lib', 'tagore-data', 'base.svg.p')
BASE_PATH = os.path.join(sys.exec_prefix, 'lib', 'tagore-data', 'base.svg.p')
try:
BASE = open(BASE_PATH, 'rb')
except (IOError, EOFError) as base_e:
Expand Down

0 comments on commit 00f57b6

Please sign in to comment.