Python Forum
Even if my file is "main.py",cannot run my project
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Even if my file is "main.py",cannot run my project
#13
 Directory of E:\Documents\foo

05/03/2018  08:19    <DIR>          .
05/03/2018  08:19    <DIR>          ..
05/03/2018  08:20                21 __main__.py
               1 File(s)             21 bytes
               2 Dir(s)  467 952 185 344 bytes free

E:\Documents\foo>python __main__.py
hello world

E:\Documents\foo>

Bravo Gribouillis. Your foo works well.
E:\Documents>python foo
hello world

E:\Documents>
Reply


Messages In This Thread
RE: Even if my file is "main.py",cannot run my project - by sylas - Mar-05-2018, 07:23 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to Randomly Print a Quote From a Text File When User Types a Command on Main Menu BillKochman 13 1,197 Apr-24-2024, 05:47 AM
Last Post: Bronjer
  Web project and running a .py file emont 0 691 Dec-11-2022, 11:15 PM
Last Post: emont
  python run all py files from main py file mg24 6 1,455 Oct-12-2022, 04:41 AM
Last Post: mg24
  help with project of reading and searching big log file korenron 6 2,278 Jun-24-2021, 01:57 PM
Last Post: korenron
  Calling main in project structure fails sandro4912 0 1,385 Aug-22-2020, 01:51 PM
Last Post: sandro4912
  how to run another function from main file Mekala 3 2,634 Aug-09-2020, 04:41 AM
Last Post: deanhystad
  How to build exe/deployable file from Python Project ShikhaJain 1 2,856 Jul-04-2019, 05:37 PM
Last Post: snippsat
  Use Variables Generated from Functions in different files to use on the main file AykutRobotics 3 3,003 Jan-01-2019, 04:19 PM
Last Post: AykutRobotics
  Compile python project to single portable .exe file Campbell 5 10,776 Dec-05-2017, 01:20 PM
Last Post: buran
  How to transfer a music file, from "uploads" directory into my project sylas 15 8,909 Sep-10-2017, 09:16 PM
Last Post: sylas

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020