Skip to content

Commit cb90d82

Browse files
committed
Global CWD bugfix.
1 parent de6ddb8 commit cb90d82

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

structure_threader/structure_threader.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434
import structure_threader.plotter.structplot as sp
3535
import structure_threader.sanity_checks.sanity as sanity
3636

37+
# Where are we?
38+
CWD = os.getcwd()
39+
3740

3841
def gracious_exit(*args):
3942
"""Graciously exit the program."""
@@ -427,9 +430,6 @@ def main():
427430

428431
arg = argument_parser(sys.argv[1:])
429432

430-
# Where are we?
431-
CWD = os.getcwd()
432-
433433
# Switch relative to absolute paths
434434
arg.infile = os.path.abspath(arg.infile)
435435
arg.outpath = os.path.abspath(arg.outpath)

0 commit comments

Comments
 (0)