소스 검색

auto commit

master
jfinn 2 년 전
부모
커밋
def3099711
1개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  1. 7
    2
      wsps/tasks_loop.py

+ 7
- 2
wsps/tasks_loop.py 파일 보기

@@ -251,6 +251,7 @@ class RldMan():
251 251
 	def add_file(self,file_name,fnx={}):
252 252
 		self.files[file_name] = {"ftxt":"",**fnx}
253 253
 	def get_scope(self,rfile_obj,file_name):
254
+		return self.scopes["current_scope"]
254 255
 		return {
255 256
 		"scope":self.scopes["current_scope"],
256 257
 		}
@@ -276,8 +277,12 @@ class RldMan():
276 277
 					p(scope_key,rfile_obj)
277 278
 					f.close()
278 279
 					scope_obj = self.get_scope(file_name,rfile_obj)
279
-					if self.scope_opt
280
-					exec(ftxt)
280
+					if self.scope_opt == "locals":
281
+						exec(ftxt,scope_obj["globals"],scope_obj["locals"])
282
+					elif self.scope_opt == "globals":
283
+						exec(ftxt,scope_obj["globals"])
284
+					else:
285
+						exec(ftxt)
281 286
 
282 287
 				except Exception as e:
283 288
 					print("EXCEPT",eflag,e)

Loading…
취소
저장