fixes #211 
Uses Path(wikidir) to get the path compatible for both Windows and Linux

---------

Co-authored-by: Elsie Hupp <github@elsiehupp.com>
pull/409/head
Rob Kam 2 months ago committed by GitHub
parent 521b081b0a
commit a8d2ef02eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -105,9 +105,9 @@ Each wiki will be stored into files contiaining a stripped version of the url an
By default, a `7z` executable is found on `PATH`. The `--7z-path` argument can be used to use a specific executable instead.
The `--generator-arg` or `-g` argument can be used on the command line to pass through arguments to the `generator` instances that are spawned. For example:
- `--generator-arg=--xmlrevisions` to use the modern MediaWiki API for retrieving revisions
- `--generator-arg=--delay=2` to use a delay of 2 seconds between requests
- `-g=--user -g=USER -g=--pass -g=PASSWORD` to dump a wiki that only logged in users can read
* `--generator-arg=--xmlrevisions` to use the modern MediaWiki API for retrieving revisions
* `--generator-arg=--delay=2` to use a delay of 2 seconds between requests
* `-g=--user -g=USER -g=--pass -g=PASSWORD` to dump a wiki that only logged in users can read
## `Uploader`

@ -170,7 +170,7 @@ def main():
# compress
if finished:
time.sleep(1)
os.chdir(wikidir)
os.chdir(Path(wikidir))
print("Changed directory to", os.getcwd())
# Basic integrity check for the xml. The script doesn't actually do anything, so you should check if it's broken. Nothing can be done anyway, but redownloading.
subprocess.call(

Loading…
Cancel
Save