I am using setuptools to create a wheel file.
There is a conf-file I want to install into the users config-diretory.
e.g. /home/user/.config/appname/app.conf
setup(...,
data_files = [ ('~/.config/appname/', ['app.conf']) ]
)
I see two problems here:
1.
I don't know the users "name".
We are pleased to introduce our final keynote speaker for EuroPython
2015: Mandy Waite. She will be giving her keynote on Friday, July 24.
About Mandy Waite
-
Mandy works at Google as a Developer Advocate for Google Cloud
Platform and to make the world a better place for developer
On 10 July 2015 at 03:11, wrote:
> I am using setuptools to create a wheel file.
>
> There is a conf-file I want to install into the users config-diretory.
> e.g. /home/user/.config/appname/app.conf
>
> setup(...,
> data_files = [ ('~/.config/appname/', ['app.conf']) ]
> )
>
> I see tw
With Mandy Waite we have announced all keynotes for EuroPython 2015:
5 keynotes, 6 speakers, 4 women and 2 men.
Keynote Schedule
* Monday: Ola Sendecka & Ola Sitarska
* Tuesday: Guido van Rossum
* Wednesday: Holger Krekel
* Thursday: Carrie Anne
* Friday: Mandy Waite
More d
Dear Group,
I am trying to make a search engine. I used Whoosh to do it.
I want to add documents to it. This is going fine.
Now, I want to add documents in the index with REST framework.
I could learn Flask well.
My task is to use Flask to add documents (by using put/post) to index.
I am sligh
On Friday, July 10, 2015 at 7:21:14 AM UTC-4, M.-A. Lemburg wrote:
> With Mandy Waite we have announced all keynotes for EuroPython 2015:
> 5 keynotes, 6 speakers, 4 women and 2 men.
Your mentioning these numbers makes me wonder if the organizing committee is
using gender preferences in its selec
In a message of Fri, 10 Jul 2015 04:46:25 -0700, subhabrata.bane...@gmail.com
writes:
>Dear Group,
>
>I am trying to make a search engine. I used Whoosh to do it.
>I want to add documents to it. This is going fine.
>Now, I want to add documents in the index with REST framework.
>I could learn Fl
Le vendredi 10 juillet 2015 04:02:56 UTC+2, Chris Angelico a écrit :
> I'm not sure what contradiction you're referring to, here. The
> evaluation that you're pointing out says, as Terry showed via the
> disassembly, that Python's first action is to look up the name 't' and
> grab a reference t
On Friday, July 10, 2015 at 8:04:36 AM UTC-4, candide wrote:
> Le vendredi 10 juillet 2015 04:02:56 UTC+2, Chris Angelico a écrit :
>
>
>
> > I'm not sure what contradiction you're referring to, here. The
> > evaluation that you're pointing out says, as Terry showed via the
> > disassembly, tha
On 7/10/2015 8:04 AM, candide wrote:
Le vendredi 10 juillet 2015 04:02:56 UTC+2, Chris Angelico a écrit :
I'm not sure what contradiction you're referring to, here. The
evaluation that you're pointing out says, as Terry showed via the
disassembly, that Python's first action is to look up the nam
Hi,
No, the value of t is a reference to tje list. So first, (1) the value of
the reference t is recovered, (2) the parenthesis is evaluated, (...) the
whole expression is evaluated.
To evaluate (2), the .sort() call is executed in place with the side effect
of sorting the content of t. t.sort()
Hi,
No, the value of t is a reference to tje list. So first, (1) the value of
the reference t is recovered, (2) the parenthesis is evaluated, (...) the
whole expression is evaluated.
To evaluate (2), the .sort() call is executed in place with the side effect
of sorting the content of t. t.sort()
On Thu, Jul 9, 2015 at 9:05 PM, Chris Angelico wrote:
> Even if it respects that, there's no way that Mailman can know to
> respect his ridiculous copyright restriction.
>
Well, sure. But Mailman is probably not alone in this regard. In case it
wasn't clear from Tony the Tiger's post (everything
On Sat, Jul 11, 2015 at 12:05 AM, Skip Montanaro
wrote:
> I'm not sure about X-No-Html. A quick Google search for that header returned
> nothing useful.
Yeah. At best it seems redundant - "Hey look, there's no HTML in this
message!" - but I suspect it's mainly bragging "I can add headers to
my po
On Fri, Jul 10, 2015 at 10:04 PM, candide wrote:
> But in order to perform an operation, the interpreter has to evaluate the
> operands and "evaluating" is not "grabbing a reference to".
Actually, it is. Suppose that instead of 't', you had a function call:
def get_t(announce, returnme=[]):
I'm just learning Python, and I've run into trouble trying to change
directory to the windows My Documents directory. There's likely a better
way to do this, but this is what I've tried so far:
-
from tkinter import Tk
from tkinter.filedialog import as
Anyway, if we enter this kind of discussion, it is a reliable indication that
the code smells. There is a pythonic way to express the same task:
>>> t.sort()
>>> t
kind regards
Thierry
On ven., juil. 10, 2015 at 2:28 PM, Terry Reedy < tjre...@udel.edu
[tjre...@udel.edu] > wrote:
On 7/10/2015 8
On 10/07/2015 15:27, Mark Storkamp via Python-list wrote:
I'm just learning Python, and I've run into trouble trying to change
directory to the windows My Documents directory. There's likely a better
way to do this, but this is what I've tried so far:
CC’ing the mailing list; please use Reply All in the future.
On 10 July 2015 at 16:36, wrote:
> Hi Chris,
>
> thank you for your answer.
>
> On 2015-07-10 09:39 Chris Warrick wrote:
>> You should NEVER use sudo with pip. Instead, use virtualenvs as a
>> regular user, or create your own .deb pa
On 10/07/2015 15:30, Thierry Chappuis wrote:
[snipped]
Please don't top post here as it can get irritating, especially in long
threads, thanks.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/
Maybe HOMEPATH is what windows calls it?
http://libertyboy.free.fr/computing/reference/envariables/
(but maybe this is only for windows XP. I don't have
a windows system, so I cannot test this.)
Laura
--
https://mail.python.org/mailman/listinfo/python-list
On 2015-07-10 15:27, Mark Storkamp via Python-list wrote:
I'm just learning Python, and I've run into trouble trying to change
directory to the windows My Documents directory. There's likely a better
way to do this, but this is what I've tried so far:
In article ,
MRAB wrote:
> On 2015-07-10 15:27, Mark Storkamp via Python-list wrote:
> > I'm just learning Python, and I've run into trouble trying to change
> > directory to the windows My Documents directory. There's likely a better
> > way to do this, but this is what I've tried so far:
> >
>
On Friday, July 10, 2015 at 5:36:48 PM UTC+5:30, Laura Creighton wrote:
> In a message of Fri, 10 Jul 2015 04:46:25 -0700,
> writes:
> >Dear Group,
> >
> >I am trying to make a search engine. I used Whoosh to do it.
> >I want to add documents to it. This is going fine.
> >Now, I want to add doc
On Thu, 09 Jul 2015 19:50:33 GMT, Tony the Tiger wrote:
> On Tue, 30 Jun 2015 00:56:26 +, Peter Pearson wrote:
>
>> If I use timezone US/Central, I get the same (bad) plot.
>
> Perhaps this can help?:
> http://stackoverflow.com/questions/1301493/setting-timezone-in-python
Yes, thanks. As I s
On Friday, July 10, 2015 at 8:56:48 PM UTC+5:30, Mark Storkamp wrote:
> MRAB wrote:
>
> > On 2015-07-10 15:27, Mark Storkamp via Python-list wrote:
> > > I'm just learning Python, and I've run into trouble trying to change
> > > directory to the windows My Documents directory. There's likely a b
On Friday, July 10, 2015 at 11:18:57 PM UTC+5:30, Rustom Mody wrote:
> On Friday, July 10, 2015 at 8:56:48 PM UTC+5:30, Mark Storkamp wrote:
> > MRAB wrote:
> >
> > > On 2015-07-10 15:27, Mark Storkamp via Python-list wrote:
> > > > I'm just learning Python, and I've run into trouble trying to c
Hi Chris,
thank you for your answer.
On 2015-07-10 09:39 Chris Warrick wrote:
> You should NEVER use sudo with pip. Instead, use virtualenvs as a
> regular user, or create your own .deb packages.
I am not sure, but maybe this is an Ubuntu-specific "problem"?
When I don't use sudo I got error
On Fri, Jul 10, 2015 at 10:01 PM, beliavsky--- via Python-list
wrote:
> On Friday, July 10, 2015 at 7:21:14 AM UTC-4, M.-A. Lemburg wrote:
>> With Mandy Waite we have announced all keynotes for EuroPython 2015:
>> 5 keynotes, 6 speakers, 4 women and 2 men.
>
> Your mentioning these numbers makes m
On 2015-07-10 09:27, Mark Storkamp via Python-list wrote:
> sourcedir = os.environ['HOME']+"/Documents/"
First, I'd do a couple things here to accommodate various systems to
make it cross-platform:
sourcedir = os.path.join(
os.path.expanduser('~'),
"Documents"
)
> os.chdir(sourcedi
On Friday, July 10, 2015 at 2:58:18 PM UTC-4, Chris Angelico wrote:
> On Fri, Jul 10, 2015 at 10:01 PM, beliavsky--- via Python-list
> wrote:
> > On Friday, July 10, 2015 at 7:21:14 AM UTC-4, M.-A. Lemburg wrote:
> >> With Mandy Waite we have announced all keynotes for EuroPython 2015:
> >> 5 keyn
On 2015-07-10, beliav...@aol.com wrote:
> On Friday, July 10, 2015 at 2:58:18 PM UTC-4, Chris Angelico wrote:
>> On Fri, Jul 10, 2015 at 10:01 PM, beliavsky--- via Python-list
>> wrote:
>> > On Friday, July 10, 2015 at 7:21:14 AM UTC-4, M.-A. Lemburg wrote:
>> >> With Mandy Waite we have announce
I may be phrasing this question improperly, but...If I need a canvas or
canvas-like object, does GTK3/pygobject provide one? Or only GTK2/PyGTK? The
answer seems to be "only GTK2/PyGTK" but the discussion I find online doesn't
seem to have a clear answer.
--
https://mail.python.org/mailman/lis
On 7/10/2015 5:14 PM, beliavsky--- via Python-list wrote:
On Friday, July 10, 2015 at 2:58:18 PM UTC-4, Chris Angelico wrote:
On Fri, Jul 10, 2015 at 10:01 PM, beliavsky--- via Python-list
wrote:
On Friday, July 10, 2015 at 7:21:14 AM UTC-4, M.-A. Lemburg
wrote:
With Mandy Waite we have annou
On 2015-07-10 09:39 Chris Warrick wrote:
> And you should not create the files in your install script. Instead,
> install them to a different data dir (somewhere in 'share/appname', or
> alongside your package). When someone runs your app, only then you
> should copy this file to user’s config di
The My Documents directory is not guaranteed to be named "Documents". On
older versions of windows it was "My Documents", and on foreign versions
of windows it is a name in their language.
The correct way to get the path of this folder is, for example (couldn't
test since I'm on a mac right now)
On Sat, Jul 11, 2015 at 10:01 AM, wrote:
> On 2015-07-10 09:39 Chris Warrick wrote:
>> And you should not create the files in your install script. Instead,
>> install them to a different data dir (somewhere in 'share/appname', or
>> alongside your package). When someone runs your app, only then
37 matches
Mail list logo