You might consider packaging your project as a script so that it can be run
> by the user from the command line. See:
> https://docs.python.org/2/distutils/setupscript.html#installing-scripts
>
> Provided that you add something like #!/usr/bin/python to the top of
> scorer.py, 'python setup.py inst
On 4/6/2015 12:42 PM, Dave Angel wrote:
On 04/06/2015 03:20 PM, Emile van Sebille wrote:
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> d = {'a':'123'}
>>> def func(s=d['a']):
... print s
...
>
>
> On your GitHub repository, you have a single file, scorer.py. I think that
> this is a better approach in this instance than the multiple file approach
> you have now taken (see below).
>
I am sorry I linked the master repository. See the structureCode branch[1].
>
> > setuptools says that my
I apologise, my method was for distutils, not setuptools. I get the two
> muddled. The mechanism for creating a console script like you describe with
> setuptools is described here[1]. The post you linked also has a section on
> it under the heading ‘Executable scripts’. It allows for the multiple
Hello,First of all, i'm not trying to learn how to program with Python. I use
Blender for my project, Blender 2.49b uses Python262. when i try to export the
mesh from Blender to an other program, python doesn't work and show the error
like the screenshot in annex. I've just installed numpy 1.3.
On 07/04/15 21:52, Francesca Ghidelli wrote:
Hello,First of all, i'm not trying to learn how to program with Python.
OK. So how exactly are you using Python?
> I use Blender for my project, Blender 2.49b uses Python262.
This is a list for folks learning Python so we don't necessarily
know muc
On 07Apr2015 21:20, Anubhav Yadav wrote:
I apologise, my method was for distutils, not setuptools. I get the two
muddled. The mechanism for creating a console script like you describe with
setuptools is described here[1]. The post you linked also has a section on
it under the heading ‘Executabl
On Mon, Apr 6, 2015 at 12:54 PM, Dave Angel wrote:
> On 04/06/2015 12:43 PM, boB Stepp wrote:
>
>>
>> I was breaking down longer functions into smaller ones. Along the way
>> I noticed I was passing an entire dictionary from one function to
>> another. I only needed to pass one particular value, n
On Mon, Apr 6, 2015 at 2:42 PM, Dave Angel wrote:
> On 04/06/2015 03:20 PM, Emile van Sebille wrote:
>>
>> On 4/6/2015 7:54 AM, boB Stepp wrote:
>>>
[...]
>>
>> Maybe this form helps:
>>
>> Python 2.7.6 (default, Mar 22 2014, 22:59:56)
>> [GCC 4.8.2] on linux2
>> Type "help", "copyright", "credi
On 08Apr2015 08:53, Anubhav Yadav wrote:
Note the ":" before main, not ".".
That's it, that fixed the problem. Now I have a scorer binary.
No, you have a "scorer" executable which is a script. A "binary" is a loadable
machine code file.
Thanks. A
couple of more questions!
1) If I have i
On 07Apr2015 21:16, boB Stepp wrote:
Despite Mark's warning, I feel I must see if I understand what is going on here.
Switching to Py 3.4 since I am now at home:
Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:44:40) [MSC v.1600
64 bit (AMD64)] on win32
Type "copyright", "credits" or "licen
11 matches
Mail list logo