Skip to content

Commit 72b9b28

Browse files
committed
Corrected a bug in the fastStructure input file extension.
1 parent f64fcb3 commit 72b9b28

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def platform_detection(install_binaries=True):
5454

5555
# Set some variables (PKGBUILD inspired)
5656
DATA_FILES = platform_detection()
57-
VERSION = "0.2.3"
57+
VERSION = "0.2.4"
5858
URL = "https://github.com/StuntsPT/Structure_threader"
5959

6060

structure_threader/structure_threader.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ def runprogram(wrapped_prog, iterations):
6767
infile = arg.infile[:-4]
6868
else:
6969
file_format = "str" # Assume 'STR' format if plink is not specified
70-
if arg.infile.endswith(".str") is False: # Do we need a symlink?
71-
from os import symlink
70+
if arg.infile.endswith(".str") is False: # Do we need a symlink?
71+
infile = arg.infile
7272
try:
73-
symlink(arg.infile, arg.infile+".str")
73+
os.symlink(arg.infile, arg.infile+".str")
7474
except OSError as err:
7575
if err.errno != 17:
7676
raise

0 commit comments

Comments
 (0)