Skip to content

Commit 4d1aeb0

Browse files
committed
- added director location check for unity_fs.py
1 parent f9fea76 commit 4d1aeb0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: bin/unity_fs.py

+5
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
NAS1_URL = "https://nas1.unity.rc.umass.edu/api/v2.0"
2525

2626
NAS1_API_KEY = ""
27+
28+
# make sure we are looking for the API key in the bin directory
29+
if os.getcwd()[-4:] != "/bin":
30+
os.chdir("bin")
31+
2732
with open('apikey', 'r') as file:
2833
NAS1_API_KEY = file.read().replace('\n', '')
2934
print(NAS1_API_KEY)

0 commit comments

Comments
 (0)