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

Commit f71bb58

Browse files
committed
comment out from imports when running script remotely
1 parent 31f55b1 commit f71bb58

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

paperspace/jobs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ def runas_job(params={}, no_logging=False):
304304
# TO DO: remove these replacements once we are auto importing paperspace on the job runner
305305
# and have defined the PAPERSPACE_JOB_RUNNER env var and passed it into the container
306306
src = src.replace('import paperspace', '# import paperspace')
307+
src = src.replace('from paperspace', '# from paperspace')
307308
src = src.replace('paperspace.config.PAPERSPACE_API_KEY', '_paperspace_config_PAPERSPACE_API_KEY')
308309
src = src.replace('paperspace.config.CONFIG_HOST', '_paperspace_config_CONFIG_HOST')
309310
src = src.replace('paperspace.config.CONFIG_LOG_HOST', '_paperspace_config_CONFIG_LOG_HOST')

0 commit comments

Comments
 (0)