Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Running python code located in external file doesn't reflect changes in code for consecutive executions #726

Closed
@msup

Description

@msup

Environment

  • Pythonnet version: 2.4, commitb6417ca
  • Python version: Python 3.6.2 |Anaconda custom (64-bit)| (default, Sep 19 2017, 08:03:39) [MSC v.1900 64 bit (AMD64)] on win32
  • Operating System: Windows 10, 17746.rs5

Details

  • I created simple WPF application with 2 buttons executing 2 different scripts - test_module1.py & test_module2.py

    What I want to do is to have an option to modify the external python script while the main wpf application is still running. When I first time start the script, modify it in the bin directory, delete the created python cache directory or delete the script py file itself and press the buttons in WPF
    again - modification are not executed. Always what runs is the first time executed script.

Use case:

  1. Start the app
  2. Click the Start test_module1.py button
  3. Go to the bin directory, modify the Start test_module1.py or delete it
  4. Click the Start test_module1.py button again

Minimal demo application in attachment

Test_PyNet_2ndCallIssue.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp