Skip to content

Commit

Permalink
- added director location check for unity_fs.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cstaff14 committed Apr 21, 2022
1 parent f9fea76 commit 4d1aeb0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/unity_fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
NAS1_URL = "https://nas1.unity.rc.umass.edu/api/v2.0"

NAS1_API_KEY = ""

# make sure we are looking for the API key in the bin directory
if os.getcwd()[-4:] != "/bin":
os.chdir("bin")

with open('apikey', 'r') as file:
NAS1_API_KEY = file.read().replace('\n', '')
print(NAS1_API_KEY)
Expand Down

0 comments on commit 4d1aeb0

Please sign in to comment.