Commit a8a4de7d authored by Gao, Shang's avatar Gao, Shang
Browse files

fixed raw input

parent f20f96bb
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -56,8 +56,7 @@ class crossbowOlcf(object):
        print 'Please go to this URL and login: %s' % url

        #get auth code and download refresh tokens
        get_input = getattr(__builtins__, 'raw_input', input)
        auth_code = get_input('Please enter the code you get after login here: ').strip()
        auth_code = raw_input('Please enter the code you get after login here: ').strip()

        ssh_stdin, ssh_stdout, ssh_stderr = \
            self.ssh.exec_command("export PATH=/ccs/home/iamshang/anaconda2/bin:/ccs/home/iamshang/anaconda2/lib/python2.7/site-packages:$PATH;\
+1 −1
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ if 'mnist_test.csv' not in resources:
olcf = crossbowOlcf('rhea')

#download refresh token to OLCF
olcf.get_globus_tokens(olcf_path='./')
olcf.get_globus_tokens(crossbow_path='./')

#download mnist dataset if it doesn't exist
olcf_endpoint = 'ef1a9560-7ca1-11e5-992c-22000b96db58'
+3 −0
Original line number Diff line number Diff line
@@ -23,6 +23,9 @@ if 'yelp_academic_dataset_review.json' not in resources:
#connect to OLCF before download starts
olcf = crossbowOlcf('rhea')

#download refresh token to OLCF
olcf.get_globus_tokens(crossbow_path='./')

#download yelp dataset if it doesn't exist
olcf_endpoint = 'ef1a9560-7ca1-11e5-992c-22000b96db58'
path = '/~/'