executing functions from windows console - python -


i have implemented logic through python functions , looking way calling functions more efficiently. there way calling these functions windows command prompt or python cmd below?

python function:

def logic1(args)     ... 

want call function this:

logic1(args) 

import file in python console this:

from my_file.py import * 

or

from my_file.py import name1, name2 ... 

now can use these in python console. out same importing files.

for calling functions in windows prompt need separate each function own file , use py2exe convert them executables. may overhead of work though, depending on want achieve.


Comments

Popular posts from this blog

android - questions about switching from C2DM to GCM -

c++ - Qt setGeometry: Unable to set geometry -

batch file - How to extract all multi-volume RAR archives from subfolders of a folder? -