Skip to content

Commit 287556b

Browse files
committed
ififuncs.py - changes back to cwd
1 parent 7f38263 commit 287556b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ififuncs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,7 @@ def get_script_version(scriptname):
727727
'''
728728
uses git to get SHA:DATETIME for a script
729729
'''
730+
current_dir = os.getcwd()
730731
home = os.path.expanduser("~/")
731732
os.chdir(home)
732733
if os.path.isdir('ifigit/ifiscripts'):
@@ -735,6 +736,7 @@ def get_script_version(scriptname):
735736
script_version = subprocess.check_output([
736737
'git', 'log', '-n', '1', '--pretty=format:%H:%aI', scriptname
737738
])
739+
os.chdir(current_dir)
738740
return script_version
739741

740742

0 commit comments

Comments
 (0)