Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.python > #4924
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Sascha Manns <saigkill@opensuse.org> |
| Newsgroups | de.comp.lang.python |
| Subject | Re: [Python-de] File aus Datadir kopieren |
| Date | Sun, 24 Sep 2017 00:45:00 +0200 |
| Organization | openSUSE Community |
| Lines | 33 |
| Message-ID | <mailman.193.1506206706.2730.python-de@python.org> (permalink) |
| References | <1506199225.4948.36.camel@opensuse.org> <bb8323db-49ab-766f-1d23-89e0d632b3c0@inqbus.de> <1506206700.4948.43.camel@opensuse.org> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| Content-Transfer-Encoding | 8bit |
| X-Trace | news.uni-berlin.de hLlBF96LkoNIaxBlfJsM/g9M47yW79h7kV/tbCCZYeDw== |
| Return-Path | <saigkill@opensuse.org> |
| X-Original-To | python-de@python.org |
| Delivered-To | python-de@mail.python.org |
| X-Virus-Scanned | amavisd-new at heinlein-support.de |
| In-Reply-To | <bb8323db-49ab-766f-1d23-89e0d632b3c0@inqbus.de> |
| X-BeenThere | python-de@python.org |
| X-Mailman-Version | 2.1.24 |
| Precedence | list |
| List-Id | Die Deutsche Python Mailingliste <python-de.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-de>, <mailto:python-de-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-de/> |
| List-Post | <mailto:python-de@python.org> |
| List-Help | <mailto:python-de-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-de>, <mailto:python-de-request@python.org?subject=subscribe> |
| X-Mailman-Original-Message-ID | <1506206700.4948.43.camel@opensuse.org> |
| X-Mailman-Original-References | <1506199225.4948.36.camel@opensuse.org> <bb8323db-49ab-766f-1d23-89e0d632b3c0@inqbus.de> |
| Xref | csiph.com de.comp.lang.python:4924 |
Show key headers only | View raw
Servus Volker, Am Samstag, den 23.09.2017, 23:41 +0200 schrieb Dr. Volker Jaenisch: > Am 23.09.2017 um 22:40 schrieb Sascha Manns: > > gerade schreibe ich ein Python3 Programm, welches durch Makefiles > > installiert wird. Somit können Applikationsdaten sowohl unter > > /usr/share, als auch unter /usr/local/share liegen. > > > > Nun möchte ich ein File aus diesem Ordner an ein Ziel kopieren. Wie > > kann ich am Besten darauf zugreifen? > > Deployment von Anwendungen ist ein weites Feld mit vielen Löchern und > Steinen, manchmal haben sich sogar Orcs in den Löchern verschanzt. :- > ) > > Du könntest den makefile eine Config-Datei erzeugen lassen, der die > relevanten (absoluten oder relativen) Pfade enthält, und der für Dein > python Programm an einer definierten Stelle (relativer Pfad, oder > gleiches Verzeichnis) liegt. Diesen liest Dein Programm ein und kennt > so > die Stellen wo die daten-files die Du kopieren willst liegen. Ja, das wäre schon einmal ein Ansatz. Ich werde damit mal experimentieren. Danke schön. Gruß Sascha -- Sascha Manns | openSUSE Member Email: saigkill@opensuse.org | Blog: http://saigkill.tuxfamily.org GPG: 0x62ECD463
Back to de.comp.lang.python | Previous | Next | Find similar
Re: [Python-de] File aus Datadir kopieren Sascha Manns <saigkill@opensuse.org> - 2017-09-24 00:45 +0200
csiph-web