Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6968515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:27:41+00:00 2026-05-27T16:27:41+00:00

When I compile on Windows a py-file into another folder then the pyc-file shortly

  • 0

When I compile on Windows a py-file into another folder then the pyc-file shortly appears and disappears an instant later.

Here the sample code I execute:

from py_compile import compile
source = r"E:\proj\abc\__init__.py"
dest = r"E:\proj\bin_abc\__init__.pyc"
print(compile(source, cfile=dest, doraise=True))

Now, if I compile the pyc in the same destination folder than the py-file resides in, then it does not disappear ?!??

Has anybody an explanation for this behavior?

Update: I figured out that it is Aptana Studio that is responsible for deleting the pyc-files:

  • the files remain if I compile them into a directory outside my Aptana project. (If dest is E:\temp\__init__.pyc for example).
  • the files are deleted if I run the code snipped outside Aptana and Aptana is open.
  • the files remain if I run the code snipped and Aptana is closed

Why does Aptana delete my pyc-files?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T16:27:42+00:00Added an answer on May 27, 2026 at 4:27 pm

    Automatic pyc deletion is a “feature” of PyDev:

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to compile a pyw file into a pyc without console. When I
How to compile SqlCipher on windows to get exe file?
When trying to compile a file that include winnt.h via windows.h, I get the
i use the command line in windows to compile and then execute my java
How can I decode a wav file (RIFF) containing PCM data on Windows into
I have a Python script that I'd like to compile into a Windows executable.
Does anybody have an idea how to statically compile any resource file right into
I have some c++ classes that I'd like to compile into a dll file.
When you compile windows application in .NET you can set Platform Target to be
Is there possibility to compile windows service using only mingw c++ compiler and library?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.