Re: WG: dont use C:\Windows as working directory when installed using microsoft store

2025-05-18 Thread Mats Wichmann via Python-list
which probably suit some people but not you. Nor me.Good luck.Mike --Unsigned mail from my phone I did respond and something went wrong with the copy that was supposed to go to the list, still need to investigate why. IDLE uses the directory it was started in. That's absolutely fine if y

RE: WG: dont use C:\Windows as working directory when installed using microsoft store

2025-05-18 Thread Mike Dewhirst via Python-list
.Good luck.Mike --Unsigned mail from my phone Original message From: T N via Python-list Date: 17/5/25 12:54 (GMT+10:00) To: python-list@python.org Subject: WG: dont use C:\Windows as working directory when installed using microsoft store V

WG: dont use C:\Windows as working directory when installed using microsoft store

2025-05-16 Thread T N via Python-list
Von: T N Gesendet: Samstag, 17. Mai 2025 04:33 An: idle-...@python.org Betreff: dont use C:\Windows as working directory when installed using microsoft store Hi, ive installed python with IDLE using the microsoft store, but one big issue with it

Installing package as root to a system directory

2023-09-28 Thread Loris Bennett via Python-list
Hi, I use poetry to develop system software packages as a normal user. To install the packages I use, again as a normal user export PYTHONUSERBASE=/some/path pip3 install --user somepackage.whl and add /some/path to /usr/lib64/python3.6/site-packages/zedat.pth This works well enough,

Re: Getting Directory of Command Line Entry Point For Packages

2021-11-13 Thread Greg Ewing
On 13/11/21 7:23 pm, Abdur-Rahmaan Janhangeer wrote: os.getcwd is giving the path of site-packages and not the directory from which the command is run from. Something must be changing the working directory before getcwd is called. Once that happens there's no way I know of to find out wh

Re: Getting Directory of Command Line Entry Point For Packages

2021-11-13 Thread Abdur-Rahmaan Janhangeer
Greetings, This is what I am trying to do: How to get the getcwd of the directory of where the command is run and not that of the file where the cli entrypoint is found. Having the user enter the absolute path as a cli argument does not sound nice. Kind Regards, Abdur-Rahmaan Janhangeer about

Re: Getting Directory of Command Line Entry Point For Packages

2021-11-13 Thread Barry
> On 13 Nov 2021, at 06:26, Abdur-Rahmaan Janhangeer > wrote: > > Only thing is that os.getcwd is giving the path of site-packages and not > the directory from > which the command is run from. In which case the code is doing a os.chdir() before the call to os.getwd(). You

Re: Getting Directory of Command Line Entry Point For Packages

2021-11-12 Thread Abdur-Rahmaan Janhangeer
using shopyo new, it creates a copy of the project in the current folder then on running say shopyo run, it just passes commandline args flask run under the hood Only thing is that os.getcwd is giving the path of site-packages and not the directory from which the command is run from. See the run com

Re: Getting Directory of Command Line Entry Point For Packages

2021-11-12 Thread Greg Ewing
On 13/11/21 10:51 am, Abdur-Rahmaan Janhangeer wrote: ow do i get the path from which miaw the command is called from? What exactly do you mean by "called from"? If you want the user's working directory, os.getcwd() will give you that. If you want something else, you'll

Re: Getting Directory of Command Line Entry Point For Packages

2021-11-12 Thread dn via Python-list
On 13/11/2021 10.51, Abdur-Rahmaan Janhangeer wrote: > Greetings list, > > Let's say i created a package named miaw > > miaw also has a cli command called miaw > > miaw prints files and folders in the directory it is called in > > except that when miaw is used,

Re: Getting Directory of Command Line Entry Point For Packages

2021-11-12 Thread David L Neil via Python-list
On 13/11/2021 10.51, Abdur-Rahmaan Janhangeer wrote: > Greetings list, > > Let's say i created a package named miaw > > miaw also has a cli command called miaw > > miaw prints files and folders in the directory it is called in > > except that when miaw is used,

Getting Directory of Command Line Entry Point For Packages

2021-11-12 Thread Abdur-Rahmaan Janhangeer
Greetings list, Let's say i created a package named miaw miaw also has a cli command called miaw miaw prints files and folders in the directory it is called in except that when miaw is used, it prints the files and folders in site-packages This is an analogy for a package i have.

Is the bug reported to python Recently i upgraded my python version and its directory But when i try to download pyqt5 it gives out a holy error Do i have to install py 3.9 again pls help me take a lo

2021-10-17 Thread Umme Salma
-- https://mail.python.org/mailman/listinfo/python-list

Re: [Errno 2] No such file or directory:

2021-07-30 Thread Sean DiZazzo
err=subprocess.PIPE) > > > File "/home/joepareti54/anaconda3/lib/python3.8/subprocess.py", line > > 854, > > > in __init__ > > > self._execute_child(args, executable, preexec_fn, close_fds, > > > File "/home/joepareti54/anaconda3/li

Re: [Errno 2] No such file or directory:

2021-07-29 Thread joseph pareti
ubprocess.Popen([cmd], stdout=subprocess.PIPE, > > stderr=subprocess.PIPE) > > File "/home/joepareti54/anaconda3/lib/python3.8/subprocess.py", line > 854, > > in __init__ > > self._execute_child(args, executable, preexec_fn, close_fds, > > File &qu

Re: [Errno 2] No such file or directory:

2021-07-28 Thread Peter Otten
lose_fds, File "/home/joepareti54/anaconda3/lib/python3.8/subprocess.py", line 1702, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'ls -l /media/joepareti54/Elements/x/finance-2

Re: [Errno 2] No such file or directory:

2021-07-28 Thread Chris Angelico
xec_fn, close_fds, > File "/home/joepareti54/anaconda3/lib/python3.8/subprocess.py", line > 1702, in _execute_child > raise child_exception_type(errno_num, err_msg, err_filename) > FileNotFoundError: [Errno 2] No such file or directory: 'ls -l > /media/joepareti54/Elements/x/fi

[Errno 2] No such file or directory:

2021-07-28 Thread joseph pareti
oepareti54/anaconda3/lib/python3.8/subprocess.py", line 854, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/home/joepareti54/anaconda3/lib/python3.8/subprocess.py", line 1702, in _execute_child raise child_exception_type(errno_num, err_msg, err

Re: async watch directory for new files

2021-04-26 Thread Barry Scott
> On 24 Apr 2021, at 21:12, Zoran wrote: > > As I can see https://pypi.org/project/inotify/ > is not asyncio frendly. > Whatever I use, it should be asynchronous. > Final OS is linux (Centos 7), but I am doing development on Windows 10 > machine, so it wo

Re: async watch directory for new files

2021-04-25 Thread Gene Heskett
On Saturday 24 April 2021 16:13:50 Zoran wrote: > > inotifywait contains several variations of a notifier, I use it > > rather heavly here to automate such goings on as my incoming e-mail. > > Can you be more specific about inotifywait? > Do you have an link or something? No need for a link or UR

Re: async watch directory for new files

2021-04-25 Thread Zoran
Anyway, thanks for participating. -- https://mail.python.org/mailman/listinfo/python-list

Re: async watch directory for new files

2021-04-25 Thread Zoran
> inotifywait contains several variations of a notifier, I use it rather > heavly here to automate such goings on as my incoming e-mail. Can you be more specific about inotifywait? Do you have an link or something? -- https://mail.python.org/mailman/listinfo/python-list

Re: async watch directory for new files

2021-04-25 Thread Chris Angelico
On Mon, Apr 26, 2021 at 4:56 AM Zoran wrote: > > > > > > > Implementations are usually just callback-based. (Apologies for the > > generic link, I haven't needed this in Python yet: anyway, those are the > > keywords.) > > :) before asking a q

Re: async watch directory for new files

2021-04-25 Thread Zoran
> > > Implementations are usually just callback-based. (Apologies for the > generic link, I haven't needed this in Python yet: anyway, those are the > keywords.) :) before asking a question here I googled the subject a lot. Anyway, the si

Re: async watch directory for new files

2021-04-24 Thread Zoran
> Bear in mind that asyncio is NOT the only way to be asynchronous. So > what you're asking for is, very specifically, an asyncio-compatible > inotify. Turns out, there's an ainotify on PyPI that might be what you > want. Yes there is: https://github.com/rbarrois/aionotify https://asyncinotify

Re: async watch directory for new files

2021-04-24 Thread Chris Angelico
On Sun, Apr 25, 2021 at 6:16 AM Zoran wrote: > > On Saturday, 24 April 2021 at 18:52:24 UTC+2, Dieter Maurer wrote: > > Zoran wrote at 2021-4-23 14:31 -0700: > > >I need to watch for new files in directory, and when it shows up, I should > > >create async task wit

Re: async watch directory for new files

2021-04-24 Thread Zoran
On Saturday, 24 April 2021 at 18:52:24 UTC+2, Dieter Maurer wrote: > Zoran wrote at 2021-4-23 14:31 -0700: > >I need to watch for new files in directory, and when it shows up, I should > >create async task with file's full path for it, and wait for new file. > >

Re: async watch directory for new files

2021-04-24 Thread Dieter Maurer
Zoran wrote at 2021-4-23 14:31 -0700: >I need to watch for new files in directory, and when it shows up, I should >create async task with file's full path for it, and wait for new file. > >If anyone here used a library for such task, please share which one. The solution likely

Re: async watch directory for new files

2021-04-24 Thread Gene Heskett
On Friday 23 April 2021 17:31:40 Zoran wrote: > Hi, > > I need to watch for new files in directory, and when it shows up, I > should create async task with file's full path for it, and wait for > new file. > > If anyone here used a library for such task, please sh

async watch directory for new files

2021-04-23 Thread Zoran
Hi, I need to watch for new files in directory, and when it shows up, I should create async task with file's full path for it, and wait for new file. If anyone here used a library for such task, please share which one. Regards. -- https://mail.python.org/mailman/listinfo/python-list

Re: FileNotFoundError: [Errno 2] No such file or directory: ''

2021-04-14 Thread Eryk Sun
On 4/14/21, Quentin Bock wrote: > > this is the only part of the code that causes the error > > file = open('Egils Saga 1-15.txt', "r") Here's an app_abspath() function to resolve a filename against the directory of the main script: import os

Re: FileNotFoundError: [Errno 2] No such file or directory: ''

2021-04-14 Thread Michael F. Stemper
On 14/04/2021 12.55, Dan Stromberg wrote: Open a cmd.exe, command.exe or powershell, and: cd c:\my\dir\ect\ory Then run your script. Or put an os.chdir(r'c:\my\dir\ect\ory') at the top of your script. Or use file = open(r'c:\my\dir\ect\ory\Egils Saga 1-15.txt', 'r') BTW, "file" means somethin

Re: FileNotFoundError: [Errno 2] No such file or directory: ''

2021-04-14 Thread Dan Stromberg
that? > Thanks > > On Wed, 14 Apr 2021 at 13:35, Dan Stromberg wrote: > >> >> >> On Wed, Apr 14, 2021 at 9:14 AM Quentin Bock wrote: >> >>> I receive this error when I try to open a file >>> The file (what I'm trying to open) is

Re: FileNotFoundError: [Errno 2] No such file or directory: ''

2021-04-14 Thread jak
Il 14/04/2021 18:13, Quentin Bock ha scritto: I receive this error when I try to open a file The file (what I'm trying to open) is in the same folder as the program I'm trying to open it from; why is it saying no such file or directory? this is the only part of the code that causes

Re: FileNotFoundError: [Errno 2] No such file or directory: ''

2021-04-14 Thread Dan Stromberg
On Wed, Apr 14, 2021 at 9:14 AM Quentin Bock wrote: > I receive this error when I try to open a file > The file (what I'm trying to open) is in the same folder as the program I'm > trying to open it from; why is it saying no such file or directory? > > this is the o

FileNotFoundError: [Errno 2] No such file or directory: ''

2021-04-14 Thread Quentin Bock
I receive this error when I try to open a file The file (what I'm trying to open) is in the same folder as the program I'm trying to open it from; why is it saying no such file or directory? this is the only part of the code that causes the error file = open('Egils Sag

Re: file location/directory

2021-03-16 Thread dn via Python-list
start the game from "MainFolder", ie make that the "current working directory". > The alternative is to use the Environment variable $PYTHONPATH Why not manipulate os.path directly instead of using $PYTHONPATH? (this might turn into a philosophical discussion...) >

Re: file location/directory

2021-03-16 Thread Gys
On 3/14/21 7:44 PM, Quentin Bock wrote: how can I change the path that python takes to run certain files, I'm starting to create game and I want those in separate folders, so how can I change it so that python runs the program with the files from that folder?

Re: file location/directory

2021-03-14 Thread dn via Python-list
;m confused: a) are we talking about multiple Python program[me]s, or b) multiple data-files which will be accessed by the same code? a) Python will set the current directory according to where/how it is started from the command-line. b) consider that a file is addressed by more than just i

file location/directory

2021-03-14 Thread Quentin Bock
how can I change the path that python takes to run certain files, I'm starting to create game and I want those in separate folders, so how can I change it so that python runs the program with the files from that folder?

Re: revise "([^/]+)$" into '([^/]+)$' in a lot of files under a directory.

2019-11-18 Thread Pieter van Oostrum
Hongyi Zhao writes: > On Sun, 17 Nov 2019 20:28:55 +0100, Pieter van Oostrum wrote: > >> To be honest, I myself would use Emacs, with rgrep and wgrep to do this. > > Are these tools superior to grep? They are based on grep. But rgrep does a grep through a whole directory tre

Re: revise "([^/]+)$" into '([^/]+)$' in a lot of files under a directory.

2019-11-17 Thread Hongyi Zhao
On Sun, 17 Nov 2019 20:28:55 +0100, Pieter van Oostrum wrote: > To be honest, I myself would use Emacs, with rgrep and wgrep to do this. Are these tools superior to grep? Regards -- https://mail.python.org/mailman/listinfo/python-list

Re: revise "([^/]+)$" into '([^/]+)$' in a lot of files under a directory.

2019-11-17 Thread Pieter van Oostrum
Pieter van Oostrum writes: > It isn't that difficult with sed, only you have to chose a different > character than / in the substitute command, one that is not present in > both texts, e.g instead of s/a/b/ use s=a=b=. > > And then the special characters " ' () [ and $ must be escaped for the > s

Re: revise "([^/]+)$" into '([^/]+)$' in a lot of files under a directory.

2019-11-17 Thread Pieter van Oostrum
Hongyi Zhao writes: > Hi, > > I have a lot of files which resides under a directory, and I want to > resive all of the content "([^/]+)$" in these files into '([^/]+)$'. > > I have tried with sed/xargs, but it seems so difficult for dealing with > the

revise "([^/]+)$" into '([^/]+)$' in a lot of files under a directory.

2019-11-17 Thread Hongyi Zhao
Hi, I have a lot of files which resides under a directory, and I want to resive all of the content "([^/]+)$" in these files into '([^/]+)$'. I have tried with sed/xargs, but it seems so difficult for dealing with the \ , is there any convinent method to to this job wi

Re: NotADirectoryError: [Errno 20] Not a directory

2019-08-11 Thread Peter Otten
t; in a new CSV and TXT. > > However I keep getting an error saying: > > > > > *"Traceback (most recent call last): File > "/Users/username/Documents/htmlparser/parser10.py", line 59, in > for subentry in os.scandir(entry.path):NotADirectoryErr

NotADirectoryError: [Errno 20] Not a directory

2019-08-10 Thread Youssef Abdelmohsen
aying: *"Traceback (most recent call last): File "/Users/username/Documents/htmlparser/parser10.py", line 59, in for subentry in os.scandir(entry.path):NotADirectoryError: [Errno 20] Not a directory: '/Users/username/site/.DS_Store'"* Here's what I've d

Re: What's the latest best practice on Python project directory layouts?

2019-06-14 Thread Cameron Simpson
p-2-module-N.py # virtual env folder placed at same level as packages ??? venv And execute each app via the following ... python -m app-1 Questions 1. Does the above structure sound reasonable? Yes. Though I like to get them out of the top directory, details below. 2. Where to place virtual

What's the latest best practice on Python project directory layouts?

2019-06-14 Thread Malcolm Greene
I have a collection of command line scripts that share a collection of common modules. This code collection is for internal use and will run under a single version of Python 3.6+ and a single OS. My understanding of best practice is to organize this collection of Python files into a folder struc

Re: IDLE Default Working Directory

2018-11-16 Thread Irv Kalb
quot;, I tell them to just give the name of the data file e.g., >> 'MyData.txt', or a path relative from the current folder, e.g., >> 'MyData/DataFile.txt'. That makes things simple in a teaching environment >> and works on both Macs and Windows. > >

Re: IDLE Default Working Directory

2018-11-15 Thread Terry Reedy
7;py' subfolder. The whole point is for Idle -> File -> Open (or command-O) to automatically open to a specific folder. Bev in TX Thank you, Bev in TX for clarifying my question. That is indeed what I seek. The problem is that having Open and SaveAs always opening in one specific d

Re: IDLE Default Working Directory

2018-11-15 Thread eryk sun
.txt', or a path relative from the current folder, e.g., > 'MyData/DataFile.txt'. That makes things simple in a teaching environment > and works on both Macs and Windows. I hope you provide code to change the working directory to the script directory (e.g. based on __file__,

Re: IDLE Default Working Directory

2018-11-14 Thread Irv Kalb
That is indeed what I seek. > My course has proved cumbersome every time a student created a new program > in class, since they would have to change folders.And when > > I got to working with data files, I ended up with a little punt to avoid > having to specify a complete path

Re: IDLE Default Working Directory

2018-11-14 Thread Bev in TX
r lecture with an introduction to the import system and > command line. The script needs to reside in the desired directory. Once that > is the case you would import it: > > import path.to.script.sans.py.ending > AFAIK, one cannot specify a path on the import statement? The foll

Re: IDLE Default Working Directory

2018-11-14 Thread Brian Oney via Python-list
.chdir(os.path.dirname(os.path.abspath(__file__))) > > Thanks so much for taking the time and effort to provide that script.  I > experimented with it, but it does not work as desired in Idle.  I tried:* > Changed to project directory and then opened Idle >      Idle -> F

Re: IDLE Default Working Directory

2018-11-13 Thread Christman, Roger Graydon
change folders.And when I got to working with data files, I ended up with a little punt to avoid having to specify a complete path name to get to a workable directory. My students are not programmers. I have English majors, Education majors, and students in their first year at a Univer

Re: IDLE Default Working Directory

2018-11-13 Thread Bev in TX
t; Thanks so much for taking the time and effort to provide that script. I experimented with it, but it does not work as desired in Idle. I tried: * Changed to project directory and then opened Idle Idle -> File-> Open still opens ~/Documents — not the project folder. * Placed the ch

Re: IDLE Default Working Directory

2018-11-13 Thread Bev in TX
> On Nov 12, 2018, at 5:50 PM, Terry Reedy wrote: > > For me, open (command-O) opens 'Documents'. I presume it should be easy > enough to move into a 'py' subfolder. The whole point is for Idle -> File -> Open (or command-O) to automatically open to a specific folder. Bev in TX -- h

Re: IDLE Default Working Directory

2018-11-12 Thread eryk sun
On 11/12/18, Thomas Jollans wrote: > On 13/11/2018 00:45, Terry Reedy wrote: >> >> On Windows, a simple alternate is a .bat file. I belive the folloiwing >> should work. >> >> cd c:/desired/startup/directory >> py -x.y -m idlelib >> >> The de

Re: IDLE Default Working Directory

2018-11-12 Thread Terry Reedy
On 11/12/2018 7:15 PM, Thomas Jollans wrote: On 13/11/2018 00:45, Terry Reedy wrote: On Windows, a simple alternate is a .bat file.  I belive the folloiwing should work. cd c:/desired/startup/directory py -x.y -m idlelib The default for x.y is latest 3.x or latest 2.x if no 3.x. Correct me

Re: IDLE Default Working Directory

2018-11-12 Thread Thomas Jollans
On 13/11/2018 00:45, Terry Reedy wrote: > > On Windows, a simple alternate is a .bat file.  I belive the folloiwing > should work. > > cd c:/desired/startup/directory > py -x.y -m idlelib > > The default for x.y is latest 3.x or latest 2.x if no 3.x. Correct me if I

Re: IDLE Default Working Directory

2018-11-12 Thread Terry Reedy
On 11/12/2018 10:35 AM, Bev in TX wrote: On Nov 12, 2018, at 9:16 AM, eryk sun wrote: On 11/12/18, Christman, Roger Graydon mailto:d...@psu.edu>> wrote: I looked in IDLE's own configuration menu, and didn't see anything there -- and I fear that I might have to fight some Windows settings so

Re: IDLE Default Working Directory

2018-11-12 Thread Terry Reedy
e named like "IDLE (Python 3.x [32|64]-bit).lnk" in the directory "%ProgramData%\Microsoft\Windows\Start Menu\Programs\Python 3.x". Copy it to the user's desktop, where you'll have the right to modify it. Or instead you can just create a new shortcut on the desktop that r

Re: IDLE Default Working Directory

2018-11-12 Thread eryk sun
hon is installed for all users, then the shortcut should be a file named like "IDLE (Python 3.x [32|64]-bit).lnk" in the directory "%ProgramData%\Microsoft\Windows\Start Menu\Programs\Python 3.x". Copy it to the user's desktop, where you'll have the right to modify it. Or

Re: IDLE Default Working Directory

2018-11-12 Thread Christman, Roger Graydon
eryk sun responded: On 11/12/18, Christman, Roger Graydon wrote: > > I looked in IDLE's own configuration menu, and didn't see anything there -- > and I fear that I might have to fight some Windows settings somewhere else > instead. I think this is Windows 10.

Re: IDLE Default Working Directory

2018-11-12 Thread Brian Oney via Python-list
UserProfile%\Documents". > > I am not the OP and I’m on macOS — no shortcuts. How would one do the same > thing on other platforms? > Bev in TX > > > > Hello there, I am not an IDLE user. You may try a startup script from python, as per the following.

Re: IDLE Default Working Directory

2018-11-12 Thread Bev in TX
On Nov 12, 2018, at 9:16 AM, eryk sun wrote: > > On 11/12/18, Christman, Roger Graydon mailto:d...@psu.edu>> > wrote: >> >> I looked in IDLE's own configuration menu, and didn't see anything there -- >> and I fear that I might have to fight some Windows settings somewhere else >> instead. I t

Re: IDLE Default Working Directory

2018-11-12 Thread eryk sun
On 11/12/18, Christman, Roger Graydon wrote: > > I looked in IDLE's own configuration menu, and didn't see anything there -- > and I fear that I might have to fight some Windows settings somewhere else > instead. I think this is Windows 10. Modify the "Start in" field of the IDLE shortcut. You

IDLE Default Working Directory

2018-11-12 Thread Christman, Roger Graydon
Could anyone tell me how to set up IDLE's default working directory, so that it would be in the same place for each startup? (Like C:\Users\myname\Python) I teach a course that mounts a lot of file space across the network and the default directory for all my students is a readonly dire

Re: Package directory question

2018-06-26 Thread Ben Finney
n is: Is this the way it should be done? It looks fishy. The > only alternative I could come up with is to put a symlink to tables.py > into the frontend directory, which also seems fishy. Your fish-sense is working correctly. Both of those are hard-coding the path, when the Python import

Re: Package directory question

2018-06-25 Thread Robert Latest via Python-list
s tables >> >> My question is: Is this the way it should be done? It looks fishy. The >> only alternative I could come up with is to put a symlink to tables.py >> into the frontend directory, which also seems fishy. > > Your fish-sense is working correctly. Both of those

Package directory question

2018-06-25 Thread Robert Latest
From: Robert Latest Hello, I'm building an application which consists of two largely distinct parts, a frontend and a backend. The directory layout is like this: |-- jobwatch | |-- backend | | |-- backend.py | | |-- __init__.py | | `-- tables.py | |-- fro

Re: Package directory question

2018-06-24 Thread Ben Finney
way it should be done? It looks fishy. The > only alternative I could come up with is to put a symlink to tables.py > into the frontend directory, which also seems fishy. Your fish-sense is working correctly. Both of those are hard-coding the path, when the Python import mechanism is design

Package directory question

2018-06-24 Thread Robert Latest via Python-list
Hello, I'm building an application which consists of two largely distinct parts, a frontend and a backend. The directory layout is like this: |-- jobwatch | |-- backend | | |-- backend.py | | |-- __init__.py | | `-- tables.py | |-- frontend | | |-- __init

Re: Simplest way to clobber/replace one populated directory with another?

2018-05-16 Thread Cameron Simpson
On 15May2018 09:37, Travis Griggs wrote: I have a directory structure that might look something like: Data Current A B C Previous A X In as simple/quick a step as possible, I want to rename Current as Previous including

Re: Simplest way to clobber/replace one populated directory with another?

2018-05-16 Thread Michael F. Stemper
On 2018-05-15 11:37, Travis Griggs wrote: I have a directory structure that might look something like: Data Current A B C Previous A X In as simple/quick a step as possible, I want to rename Current as

Simplest way to clobber/replace one populated directory with another?

2018-05-15 Thread Travis Griggs
I have a directory structure that might look something like: Data Current A B C Previous A X In as simple/quick a step as possible, I want to rename Current as Previous including the contents and wiping out the

Re: Python 3.6 fails to install to non-standard directory under Linux (Posting On Python-List Prohibited)

2018-03-02 Thread bsferrazza
; > ... > > NFS trouble? > > I have had builds give trouble when done on directories mounted via NFS, yet > work perfectly on local directories. Hmm. That could very well be the case. I know the /home directory is NFS mounted, though not sure about /tmp. I'm starting to

Re: Python 3.6 fails to install to non-standard directory under Linux

2018-03-02 Thread bsferrazza
Here's my configure I need to set ac_cv_fun_utimensat=no and ac_cv_func_futimens=no because presumably the file-system or kernel on my system doesn't support nanosecond timestamps. With these options, and patching the configure/setup.py files to remove references to /usr/lib/ncursesw and replac

Python 3.6 fails to install to non-standard directory under Linux

2018-03-02 Thread bsferrazza
I posted this to Stackoverflow and the original post can be seen here. I'll try and copy and past the contents below. Thank you for your help! https://stackoverflow.com/questions/49074327/python-3-6-fails-to-install-to-non-standard-directory-under-linux I have a completely insulated boostr

Re: Which directory should requests and openpyxl modules be installed to?

2017-04-03 Thread eryk sun
On Tue, Apr 4, 2017 at 1:45 AM, Dennis Lee Bieber wrote: > > C:\Users\Wulfraed>assoc .py > .py=Python.File > > C:\Users\Wulfraed>ftype python.file > python.file="C:\Python27\python.exe" "%1" %* The Windows shell stores the user file-association choice in HKCU\Software\Microsoft\Windows\CurrentVer

Re: Which directory should requests and openpyxl modules be installed to?

2017-04-03 Thread Chris Angelico
On Tue, Apr 4, 2017 at 8:31 AM, wrote: > Hi Chris, > >Really! :) So I can type pip install requests at the prompt: C:\Program > Files\Python 2.7.12>pip install requests >or at C:\>pip install requests > >And the modules would be installed either way? > >Sorry I am also a newbie a

Re: Which directory should requests and openpyxl modules be installed to?

2017-04-03 Thread psmith36
On Monday, April 3, 2017 at 2:02:30 PM UTC-7, Pauline wrote: > Hi, > > I am a newbie to Python. I am using Python 2.7.12. I want to install the > modules of requests and openpyxl using pip. In the Internet, people only > said pip install requests, but they do not say in

Re: Which directory should requests and openpyxl modules be installed to?

2017-04-03 Thread Nathan Ernst
ks you to select the location of the file, just enter "cmd.exe". Hit "next" until the dialog exits. Then, right-click on the newly created shortcut and select "run as administrator", then try your pip install command. Where you run the pip command (i.e. current dir

Re: Which directory should requests and openpyxl modules be installed to?

2017-04-03 Thread Chris Angelico
s at the end of the arrow, or do I have to go > somewhere else? > > Thanks a bunch! Ah, this shouldn't matter. If you've installed Python and pip correctly, you should be able to run them from any directory at all, and they'll do their work correctly. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Which directory should requests and openpyxl modules be installed to?

2017-04-03 Thread psmith36
On Monday, April 3, 2017 at 2:02:30 PM UTC-7, Pauline wrote: > Hi, > > I am a newbie to Python. I am using Python 2.7.12. I want to install the > modules of requests and openpyxl using pip. In the Internet, people only > said pip install requests, but they do not say in

Re: Which directory should requests and openpyxl modules be installed to?

2017-04-03 Thread Nathan Ernst
On Mon, Apr 3, 2017 at 4:36 PM, wrote: > On Monday, April 3, 2017 at 2:02:30 PM UTC-7, Pauline wrote: > > Hi, > > > > I am a newbie to Python. I am using Python 2.7.12. I want to install > the modules of requests and openpyxl using pip. In the Internet, people > only

Re: Which directory should requests and openpyxl modules be installed to?

2017-04-03 Thread psmith36
On Monday, April 3, 2017 at 2:02:30 PM UTC-7, Pauline wrote: > Hi, > > I am a newbie to Python. I am using Python 2.7.12. I want to install the > modules of requests and openpyxl using pip. In the Internet, people only > said pip install requests, but they do not say in

Re: Which directory should requests and openpyxl modules be installed to?

2017-04-03 Thread Nathan Ernst
ot; (for python 3). If you're installing it for yourself, you may need to add the --prefix= option. Typically, would be somewhere under your home directory. This can be problematic, as you may need to edit the PYTHONPATH (and possibly LD_LIBRARY_PATH) to point to appropriate directories. In t

Which directory should requests and openpyxl modules be installed to?

2017-04-03 Thread Pauline
Hi, I am a newbie to Python. I am using Python 2.7.12. I want to install the modules of requests and openpyxl using pip. In the Internet, people only said pip install requests, but they do not say in which directory. I only found one that said install in the script directory within

Re: How to import all things defined the files in a module directory in __init__.py?

2016-09-24 Thread Chris Angelico
On Sat, Sep 24, 2016 at 9:32 PM, Brendan Abel <007bren...@gmail.com> wrote: >> Splitting it up would make it slower to load. > > It's usually the opposite. When packages are split up, you only have to > load the specific portions you need. Putting it all in a single module > forces you to always

Re: How to import all things defined the files in a module directory in __init__.py?

2016-09-24 Thread Brendan Abel
> Splitting it up would make it slower to load. It's usually the opposite. When packages are split up, you only have to load the specific portions you need. Putting it all in a single module forces you to always load everything. On Fri, Sep 23, 2016 at 11:59 PM, Lawrence D’Oliveiro < lawrenced.

Re: How to import all things defined the files in a module directory in __init__.py?

2016-09-24 Thread Steve D'Aprano
On Sat, 24 Sep 2016 04:59 pm, Lawrence D’Oliveiro wrote: > On Saturday, September 24, 2016 at 2:11:09 PM UTC+12, Chris Angelico > wrote: >> It's a large and complex module, and about at the boundary of being >> broken up a bit. > > Splitting it up would make it slower to load. Would it? You've b

Re: How to import all things defined the files in a module directory in __init__.py?

2016-09-24 Thread Lawrence D’Oliveiro
On Saturday, September 24, 2016 at 2:11:09 PM UTC+12, Chris Angelico wrote: > It's a large and complex module, and about at the boundary of being > broken up a bit. Splitting it up would make it slower to load. -- https://mail.python.org/mailman/listinfo/python-list

Re: How to import all things defined the files in a module directory in __init__.py?

2016-09-23 Thread Chris Angelico
On Sat, Sep 24, 2016 at 11:42 AM, Lawrence D’Oliveiro wrote: > On Friday, September 23, 2016 at 4:25:21 AM UTC+12, Chris Angelico wrote: >> For reference, the Decimal module (ignoring the C accelerator) is over six >> thousand lines of code, as a single module. Now, that might be pushing the >> bo

Re: How to import all things defined the files in a module directory in __init__.py?

2016-09-23 Thread Lawrence D’Oliveiro
On Friday, September 23, 2016 at 4:25:21 AM UTC+12, Chris Angelico wrote: > For reference, the Decimal module (ignoring the C accelerator) is over six > thousand lines of code, as a single module. Now, that might be pushing the > boundaries a bit ... What “boundaries” do you think that might be pu

Automated refactoring tools (was: How to import all things defined the files in a module directory in __init__.py?)

2016-09-22 Thread Ben Finney
Peng Yu writes: > Is there such a good automated tool for python refactoring? This sounds like a job for — Bicycle Repair Man! Watch him extract jumbled code into well ordered classes. Gasp, as he renames all occurrences of a method. Thank You Bicycle Repair Man! http://bicyc

Re: How to import all things defined the files in a module directory in __init__.py?

2016-09-22 Thread Peng Yu
On Thu, Sep 22, 2016 at 8:35 PM, Ben Finney wrote: > Peng Yu writes: > >> On Wed, Sep 21, 2016 at 11:14 PM, Ben Finney >> wrote: >> > [Importing ‘*’ from a module] will also make the names in the code >> > impossible to automatically match against where they came from. >> > Explicit is better t

Re: How to import all things defined the files in a module directory in __init__.py?

2016-09-22 Thread Ben Finney
Peng Yu writes: > On Wed, Sep 21, 2016 at 11:14 PM, Ben Finney > wrote: > > [Importing ‘*’ from a module] will also make the names in the code > > impossible to automatically match against where they came from. > > Explicit is better than implicit; you are proposing to make an > > unknown horde

Re: How to import all things defined the files in a module directory in __init__.py?

2016-09-22 Thread Chris Angelico
On Fri, Sep 23, 2016 at 1:50 AM, Peng Yu wrote: > > This will make refactoring easy. If everything is explicit, when one > do refactoring, at two places need to be changed which can be a > burden. So you want it to be easy to move stuff around between files in a package? Sounds like you don't act

  1   2   3   4   5   6   7   8   9   10   >