Skip to content
This repository was archived by the owner on Aug 11, 2020. It is now read-only.

Commit 0d77e7f

Browse files
committed
Change source to dot so it works in sh
1 parent 523d22d commit 0d77e7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paperspace/jobs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ def run(params={}, no_logging=False):
411411
init = 'init.sh'
412412
if os.path.exists(init):
413413
params['extraFiles'].append(init)
414-
params['command'] = 'source ' + os.path.basename(init) + '\n' + params['command']
414+
params['command'] = '. ' + os.path.basename(init) + '\n' + params['command']
415415

416416
if params.pop('dryrun', None):
417417
print(params['command'])

0 commit comments

Comments
 (0)