-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding error to submit scripts if Data directory does not exist
- Loading branch information
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,15 @@ def usage(exit_code=0): #If no exit code is specified, this indicates successful | |
|
||
def main(): | ||
|
||
# First things first: check if user has a "Data" directory, quit with helpful message if they don't | ||
if not os.path.isfile("Data"): | ||
print("\nERROR ERROR ERROR\n") | ||
print("'Data' directory not found") | ||
print("If on Yellowstone, link /glade/p/wrf/Data into your WTF directory") | ||
print("If you do not have access to Yellowstone, contact [email protected] for help") | ||
sys.exit("\nExiting script") | ||
|
||
|
||
tardir = "tarballs" | ||
|
||
if len(sys.argv) > 1: | ||
|