The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Python
 Internal Python not refreshing imported files
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

jy1u18@soton.ac.uk

United Kingdom
6 Posts

Posted - 05/26/2022 :  07:18:53 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I found that if I import a function from my own python script (a.py) and use it in b.py. b.py will always use the file imported for the first time and changing things in a.py won't make any difference, I'll have to close the entire program to refresh that. Simply closing the script won't change that either. And that's kinda annoying. Any suggestions?


Edited by - jy1u18@soton.ac.uk on 05/26/2022 07:20:05 AM

minimax

351 Posts

Posted - 05/27/2022 :  01:52:43 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
With py file active in Code Builder, under Tools menu, there is a menu "Clean Python Compiled Files".

Click it to see if it helps?
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000