File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -251,6 +251,10 @@ def RunfilesEnvvar(module_space):
251251 'RUNFILES_MANIFEST_FILE' and var_value is the path to that directory or
252252 file, or (None, None) if runfiles couldn't be found.
253253 """
254+ # If running from a zip, there's no manifest file.
255+ if IsRunningFromZip ():
256+ return ('RUNFILES_DIR' , module_space )
257+
254258 # If this binary is the data-dependency of another one, the other sets
255259 # RUNFILES_MANIFEST_FILE or RUNFILES_DIR for our sake.
256260 runfiles = os .environ .get ('RUNFILES_MANIFEST_FILE' , None )
@@ -261,10 +265,6 @@ def RunfilesEnvvar(module_space):
261265 if runfiles :
262266 return ('RUNFILES_DIR' , runfiles )
263267
264- # If running from a zip, there's no manifest file.
265- if IsRunningFromZip ():
266- return ('RUNFILES_DIR' , module_space )
267-
268268 # Look for the runfiles "output" manifest, argv[0] + ".runfiles_manifest"
269269 runfiles = module_space + '_manifest'
270270 if os .path .exists (runfiles ):
You can’t perform that action at this time.
0 commit comments